LEADTOOLS Config License

Show in webframe

In order to set a LEADTOOLS Runtime License, you must call RasterSupport.SetLicense during your application's startup code (preferably, before creating any LEADTOOLS classes or calling any other LEADTOOLS method). As an alternative to calling RasterSupport.SetLicense, you can place your license information in the Leadtools.dll.config file. Leadtools.dll will search for this file before any code that requires a license is invoked. If the license file is available, Leadtools.dll will apply the license(s) found in the file by reading the filename and developer key found and calling RasterSupport.SetLicense.

LEADTOOLS will search for the configuration in the same directory as the Leadtools.dll assembly. If you are consuming the DLL in a Web service or Web application, you can also add the config file to your App_Data or App_Code folders. Leadtools.dll will determine whether these folders exist and contain a valid license file.

For more information, refer to http://msdn.microsoft.com/en-us/library/ex526337.aspx

The following is an example Leadtools.dll.config:


             
             <?xml version="1.0" encoding="utf-8" ?>
             <configuration>
               <configSections>
                  <section name="LeadtoolsLicenses" type="System.Configuration.NameValueFileSectionHandler" />
               </configSections>
               <LeadtoolsLicenses>
                  <add key="D:\MyLicense.lic" value="MyDeveloperKeyGoesHere"/>
               </LeadtoolsLicenses>
             </configuration>
             

The Leadtools.dll.config file can contain multiple licenses as follows:

             
               <LeadtoolsLicenses>
                  <add key="D:\MyLicense1.lic" value="DeveloperKey1"/>
                  <add key="D:\MyLicense2.lic" value="DeveloperKey2"/>
                  <!--And so forth-- />
               </LeadtoolsLicenses>
             

To check the status of the license(s) specified in the Leadtools.dll.config file, check the value of the RasterSupport.ConfigLicenseStatus property.

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.