问题: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并且授权之后即可进行开发
时间: 2024-10-31 19:18:44