ERROR
When migrating an ArcGIS 9.3 Engine application to ArcGIS 10.x, the following COM exception may be returned at the first call of ArcObjects code, for example, IAoInitialize.Initialize method.
COMException message:
"ArcGIS version not specified. You must first bind to an ArcGIS version prior to using any ArcGIS components."
This exception is thrown because the standalone Engine application has not bound to an ArcGIS product before calling any ArcObjects code. Runtime binding is a new requirement since ArcGIS 10.0.
Code:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine);
Code:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine)
Code:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
Code:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop)
Get help from ArcGIS experts
Download the Esri Support App