1 出现以下问题:
未处理的“System.InvalidOperationException”类型的异常出现在 ESRI.ArcGIS.AxControls.dll 中。
其他信息: ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.
解决方法:在主函数 static void Main()中需要添加
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
因为在创建任何ArcGIS组件时都要调用RuntimeManager.Bind 来声明ArcGIS。
本人程序更改后截图,添加的代码位置应在static void Main()中的最前面
转载于http://www.cnblogs.com/mugua77/articles/2313238.html