User aed4f53879
24-10-2013 18:55:20
I am trying to run C# .NET code from a windows server and want to set the license using this code. After calling this code, a subsequent call to other ChemAxon.NET methods fail with a license not found error. Is this the proper way to set a license file? The file does exist and does contain a valid license that I can use on my client desktop.
public static bool license()
{
try
{
LicenseManager.setLicenseFile("C:\\license.cxl");
LicenseManager.refresh();
}
catch (Exception ex)
{
string err = LicenseManager.getLicenseExceptionMessage();
}
return true;
}