ArcGIS License Manager

2336
1
11-05-2012 06:00 AM
Highlighted
New Contributor
We upgraded from ArcGIS10.0 to 10.1 we are getting error in these lines of code. What???s the equivalent code for this one that works for version 10.1?

IAoInitialize ao = null;
            try
            {
                RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server);
                ao = new ESRI.ArcGIS.esriSystem.AoInitialize();
                ao.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcEditor);
                ao.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcServer);
                ao.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB);
            }
            catch (Exception)
            {
                throw;
            }

            return ao;
0 Kudos
1 Reply
Highlighted
MVP Honored Contributor
The esriLicenseProductCode constants have changed in 10.1. esriLicenseProductCodeArcEditor is now esriLicenseProductCodeStandard
0 Kudos