LicenseManager

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;
    }

ChemAxon eb65a25631

28-10-2013 10:46:07

Hi,


You can also use the SetLicenseFile method on a MarvinLicenseChecker instance. (Chemaxon.NET.IKVM).


Could you send us the stack trace of the error, and an example causing it?


 


Regards,


Andras