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 configuration file to your App_Data or App_Code folders. The 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>
To determine the status of the license(s) specified in the Leadtools.dll.config file, check the value of the RasterSupport.ConfigLicenseStatus property.
Products |
Support |
Feedback: LEADTOOLS Config License |
Introduction |
Help Version 19.0.2017.6.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.