ArcGIS License Manager

2344
1
11-05-2012 06:00 AM
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;
Reply
0 Kudos
1 Reply
MVP Honored Contributor
The esriLicenseProductCode constants have changed in 10.1. esriLicenseProductCodeArcEditor is now esriLicenseProductCodeStandard
Reply
0 Kudos