Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Authorize License by code

$
0
0
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.

Viewing all articles
Browse latest Browse all 1374

Trending Articles