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
本文介绍了一种常见的ArcGIS开发中的异常问题:“System.InvalidOperationException”,并提供了具体的解决方案。需要在程序启动时通过调用RuntimeManager.Bind来指定ArcGIS版本。
422

被折叠的 条评论
为什么被折叠?



