Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 a Student Edition of ArcGIS 10.1 for Desktop Advanced. My license is set up on my machine as single use. I am trying to initialize the license in ArcObjects, however I get the following error:

"ArcGIS product not specified. You must first bind to an ArcGIS version prior to using any ArcGIS components."

This occurs when I call AoInitialize.IsProductCodeAvailable() which doesn't make sense, since that is how you figure out what license to initialize in the first place. Here is my code:

public static esriLicenseStatus Intialize(
        ESRI.ArcGIS.esriSystem.esriLicenseProductCode esriLicenseProductCode)
        IAoInitialize aoInitialize = new AoInitialize();
        esriLicenseStatus esriLicenseStatus = 

        if (esriLicenseStatus == ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseAvailable)
            esriLicenseStatus = 

        return esriLicenseStatus;

What am I doing wrong? Does this have to do with it being Student Edition?

share|improve this question
up vote 2 down vote accepted

Try this code using the RuntimeManager class, makes it much simpler:

    if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)

You'll need to add a reference to the ESRI.ArcGIS.Version assembly.

share|improve this answer
That did the trick. Thank you. – dustmouse Feb 17 '13 at 1:15

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.