Using IronWebscraper License Keys

If you decide to purchase a license for IronWebScraper, you will instantly receive a license key as soon as your payment has cleared. This License will be displayed on the checkout screen and also be sent by email.

Setting your IronWebScraper license key using code

Add this code to the startup of your application, before IronWebscraper is used.

IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01";
IronWebScraper.License.LicenseKey = "IRONSCRAPER-MYLICENSE-KEY-1EF01"
VB   C#

Setting your IronWebScraper license key using Web.Config or App.Config

To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings.

<configuration>
   ....
   <appSettings>
      <add key="IronWebScraper.LicenseKey" value="IRONWEBSCRAPER-MYLICENSE-KEY-1EF01"/>
   </appSettings>
   ....
</configuration>
XML

To test if your key has been installed correctly

bool result = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01");
bool result = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01");
Dim result As Boolean = IronWebScraper.License.IsValidLicense("IRONWEBSCRAPER-MYLICENSE-KEY-1EF01")
VB   C#

Setting license key in web.config issue

There is a known licensing issue: in ASP.NET projects targeted .NET framework version >= 4.6.2. The key stored in a web.config file will NOT be picked up and used by the product.

To work around this issue it is recommended to read license key using ConfigurationManager from web.config in the code and apply it to the License.LicenseKey.

Example:

With the above XML file, we can use ConfigurationManager to retrieve and pass the license key value to IronWebScraper.License.LicenseKey property.

using System.Configuration;

string licenseKey = ConfigurationManager.AppSettings["IronWebScraper.LicenseKey"];

IronWebScraper.License.LicenseKey = licenseKey;
using System.Configuration;

string licenseKey = ConfigurationManager.AppSettings["IronWebScraper.LicenseKey"];

IronWebScraper.License.LicenseKey = licenseKey;
Imports System.Configuration

Private licenseKey As String = ConfigurationManager.AppSettings("IronWebScraper.LicenseKey")

IronWebScraper.License.LicenseKey = licenseKey
VB   C#

Get started with your project

Follow our tutorial on how to Get Started with IronWebsraper.