当前位置: 代码迷 >> GIS >> ArcGIS version not specified. You must call RuntimeManager.Bind before creating解决方案
  详细解决方案

ArcGIS version not specified. You must call RuntimeManager.Bind before creating解决方案

热度:240   发布时间:2016-05-05 06:30:38.0
ArcGIS version not specified. You must call RuntimeManager.Bind before creating
各位好,我在VS2008中用VB+AO进行二次开发,在创建项目是是窗体应用程序,然后通过向窗体中添加ArcGIS Windows Form来设计窗体,可是运行后,会出现下面的错误:
ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS.
  而如果创建项目时如果直接创建ArcGIS下的MapControl Application,运行时就不会出现问题。
  我想问的是:1)为什么两种方式创建项目,一种没问题,而另一种有问题
  2)在网上搜资料时,看到有人说:在系统的入口添加下面的一行代码ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); 这是C#的解决方案,在VB创建的应用窗口程序中只有My Project和Form.vb两个文件,怎样解决上述问题呢?


------解决方案--------------------
在系统的入口添加下面的一行代码ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);

你知道这行加在哪里么?
program.cs

你的vb项目里理应也有这个类
  相关解决方案