Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have ArcObjects .NET code that is running on a machine with ArcGIS for Server 10.1.

The application worked on the dev server. But when I moved to Test server, I am not able to initialize the licenses.

This is the code I am using

bool succes = false;
AoInitialize arcObjectInitEnv = new AoInitializeClass();
if (arcObjectInitEnv.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeStandard) == esriLicenseStatus.esriLicenseAvailable)
    status = arcObjectInitEnv.Initialize(licenseCode);
    throw exception(...);

I am sure I authorized the server right. and I am able to run ArcGIS server manager. And test the services and they are working fine.

I compile as "Any Cpu" , which is the same I used for Dev. Is there tool that give me "availablity" for server, like desktop? I didn't install ArcObjects SDK on the test server, because I assume it is not required there. Is that true?

How can I troubleshoot this?

share|improve this question
Did you try changing esriLicenseProductCodeArcStandard to esriLicenseProductCodeArcServer? – Kirk Kuykendall Mar 4 '13 at 20:45
Shoud you compile it in x86? due it is ArcObjects – XtianGIS Sep 18 '13 at 15:20

Try to use the function


then get rid of the code related to AoInitialize arcObjectInitEnv = new AoInitializeClass();

this funtion can be used if you are not going to use any extension.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.