添加axMapControl1控件运行后,报如下异常:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.

【解决】使用VS开发ArcGIS Engine报错:未处理InvalidOperationException

解决办法:

找到program.cs,把 ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); 这句放到Application.SetCompatibleTextRenderingDefault(false); 和 Application.Run(new Form1()); 之间就好了。

【解决】使用VS开发ArcGIS Engine报错:未处理InvalidOperationException

 

相关文章: