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;