阅读:1521回复:0
arcgis engine 开发的入门问题
<p><font face="Verdana">刚装完ae 和vs2008 arcgis9.3</font></p>
<p>果断试试老师第一堂课的内容 ,结果悲剧了。。。</p> <p>在vs2008中 创建了个c# 的窗体应用程序,拖了两个控件 mapcontrol 和license 接着我就运行;</p> <p>下面是报错的地方。。</p> <p> </p> <p><font face="Verdana">((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit();</font></p> <p> </p> <p> </p> <p>未处理 COMexception</p> <p> <font face="Verdana">没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))</font></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>具体错误i为:</p> <p><font face="Verdana">未处理 System.Runtime.InteropServices.COMException<br/> Message="没有注册类 (异常来自 HRESULT:0x80040154 </font></p> <p><font face="Verdana">(REGDB_E_CLASSNOTREG))"<br/> Source="System.Windows.Forms"<br/> ErrorCode=-2147221164<br/> StackTrace:<br/> 在 System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance</font></p> <p><font face="Verdana">(Guid; clsid, Object punkOuter, Int32 context, Guid; iid)<br/> 在 System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)<br/> 在 System.Windows.Forms.AxHost.CreateWithLicense(String </font></p> <p><font face="Verdana">license, Guid clsid)<br/> 在 System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)<br/> 在 System.Windows.Forms.AxHost.CreateInstance()<br/> 在 System.Windows.Forms.AxHost.GetOcxCreate()<br/> 在 System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)<br/> 在 System.Windows.Forms.AxHost.CreateHandle()<br/> 在 System.Windows.Forms.Control.CreateControl(Boolean </font></p> <p><font face="Verdana">fIgnoreVisible)<br/> 在 System.Windows.Forms.Control.CreateControl(Boolean </font></p> <p><font face="Verdana">fIgnoreVisible)<br/> 在 System.Windows.Forms.AxHost.EndInit()<br/> 在 EngineWindowsApplication6.Form1.InitializeComponent() 位置 </font></p> <p><font face="Verdana">C:\Users\Administrator\Documents\Visual Studio 2008\Projects</font></p> <p><font face="Verdana">\EngineWindowsApplication6\EngineWindowsApplication6\Form1.Designer.cs</font></p> <p><font face="Verdana">:行号 52<br/> 在 EngineWindowsApplication6.Form1..ctor() 位置 C:\Users</font></p> <p><font face="Verdana">\Administrator\Documents\Visual Studio 2008\Projects</font></p> <p><font face="Verdana">\EngineWindowsApplication6\EngineWindowsApplication6\Form1.cs:行号 15<br/> 在 EngineWindowsApplication6.Program.Main() 位置 C:\Users</font></p> <p><font face="Verdana">\Administrator\Documents\Visual Studio 2008\Projects</font></p> <p><font face="Verdana">\EngineWindowsApplication6\EngineWindowsApplication6\Program.cs:行号 </font></p> <p><font face="Verdana">17<br/> 在 System.AppDomain._nExecuteAssembly(Assembly assembly, </font></p> <p><font face="Verdana">String[] args)<br/> 在 </font></p> <p><font face="Verdana">Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br/> 在 System.Threading.ExecutionContext.Run(ExecutionContext </font></p> <p><font face="Verdana">executionContext, ContextCallback callback, Object state)<br/> 在 System.Threading.ThreadHelper.ThreadStart()<br/> InnerException: <br/></font></p> <p> </p> <p> </p> <p>求大神指点 ~~~</p> [此贴子已经被作者于2012-03-18 23:17:02编辑过]
|
|