ASP.NET 用 IronWebScraper ライセンスキー
Curtis Chau
更新日: 2025年6月11日
問題はIronWebScraperバージョン2024.3.6で解決されました。
Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronWebScraper must be licensed for development.
Text
古いIronWebScraperバージョン、特にバージョン2023.4.13から2024.3.6の間には、次のライセンス問題があることが知られています:
- ASP.NETプロジェクト
- .NET Frameworkバージョン >= 4.6.2
キーがWeb.configファイルに保存されている場合、製品により認識され使用されることはありません。
回避策
この問題に対処するためには、コード内でConfigurationManagerを使用してWeb.configファイルからライセンスキーを取得し、License.LicenseKeyプロパティに適用することをお勧めします。
例:
<configuration>
...
<appSettings>
<add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
XML
上記のXMLファイルを使用すると、ConfigurationManagerを使ってライセンスキーの値を取得し、それをIronWebScraper.License.LicenseKeyプロパティに渡すことができます。
// Retrieve the license key from the appSettings section of the Web.config file.
string licenseKey = ConfigurationManager.AppSettings["IronWebScraper.LicenseKey"];
// Assign the license key to the IronWebScraper's LicenseKey property.
IronWebScraper.License.LicenseKey = licenseKey;' Retrieve the license key from the appSettings section of the Web.config file.
Dim licenseKey As String = ConfigurationManager.AppSettings("IronWebScraper.LicenseKey")
' Assign the license key to the IronWebScraper's LicenseKey property.
IronWebScraper.License.LicenseKey = licenseKey' Retrieve the license key from the appSettings section of the Web.config file.
Dim licenseKey As String = ConfigurationManager.AppSettings("IronWebScraper.LicenseKey")
' Assign the license key to the IronWebScraper's LicenseKey property.
IronWebScraper.License.LicenseKey = licenseKeyテクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。