israeluv

Authorize License by code

Discussion created by israeluv on Jun 9, 2014
Latest reply on Jun 27, 2014 by robby.maddox
Hello,

I have a question, I need authorize ArcGIS Desktop and ArcGIS Server, version 10.2, but by code. This is my code:


                IAuthorizeLicense aoAuthorizeLicenseClass = new AoAuthorizeLicenseClass();

                string path = @"C:\License\Desktop_Basic_268138.eslf";

                aoAuthorizeLicenseClass.AuthorizeASRFromFile(path, this.asrItem.Password);
                   
                string featuresAdded = aoAuthorizeLicenseClass.FeaturesAdded;



No error and exception is threw. So, the license should be applied, but, when I start ArcMap, for example, it it not licensed.

I also use the command line to use the SoftwareAuthorization.exe, this command:

>SoftwareAuthorization.exe /LIF "C:\License\Desktop_Basic_268138.eslf" /s

But nothing happen, no error is displayed. Also, I don't know how to pass the password like the wizard ask for it if I used this software.

Please, let me know any idea or suggestion to implement, or what I'm doing wrong.

Thanks in advance for your help.

Outcomes