ASP.NET için IronWebScraper Lisans Anahtarı
Sorun, IronWebScraper sürüm 2024.3.6 ile çözülmüştür.
Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronWebScraper must be licensed for development.
Daha eski IronWebScraper sürümleri için, özellikle 2023.4.13 ve 2024.3.6 arasındaki sürümlerde, bilinen bir lisanslama sorunu vardır:
- ASP.NET projeleri
- .NET Framework sürümü >= 4.6.2
Ürün, Web.config dosyasında depolanan anahtarı ALMAYACAK ve kullanmayacaktır.
Geçici Çözüm
Bu sorunu gidermek için, lisans anahtarını kodda ConfigurationManager kullanarak Web.config dosyasından alıp, License.LicenseKey özelliğine uygulamanız önerilir.
Örnek:
<configuration>
...
<appSettings>
<add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
Yukarıda sağlanan XML dosyası ile, lisans anahtarı değerini almak için ConfigurationManager kullanabilir ve IronWebScraper.License.LicenseKey özelliğine geçirebiliriz.
// 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 = licenseKeyCurtis Chau, Bilgisayar Bilimleri alanında Lisans Derecesine (Carleton Üniversitesi) sahip ve Node.js, TypeScript, JavaScript ve React konularında uzmanlaşmış ön uç geliştirmeyle ilgileniyor. Sezgisel ve estetik açıdan hoş kullanıcı arayüzleri oluşturma tutkunu, Curtis modern çerçevelerle çalışmayı ve iyi yapılandırılmış, görsel olarak çekici kılavuzlar oluşturmayı seviyor.