閱讀424 返回首頁    go 阿裏雲 go 技術社區[雲棲]


ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS component

問題:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.

解決方案:

1、拖動工具箱中的LicenseControl控件到窗體

2、在程序主入口中(program.cs)添加代碼,添加後如下:

namespace WindowsApplication001
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

安裝AO並且授權之後即可進行開發


最後更新:2017-04-03 14:53:58

  上一篇:go Java中IOUtils
  下一篇:go vim 複製、刪除多行