
System.Runtime.InteropServices.COMException
HResult=0x80040111
Message=檢索 COM 類工廠中 CLSID 為 {30707212-52D5-11D0-A8F2-00608C85EDE5} 的組件失敗,原因是出現以下錯誤: 80040111 ClassFactory 無法供應請求的類 (例外來自 HRESULT:0x80040111 (CLASS_E_CLASSNOTAVAILABLE))。
Source=GIS-yingyan
StackTrace:
在 GIS_yingyan.Form1..ctor() 在 E:\桌面\GIS-yingyan\GIS-yingyan\Form1.cs 中: 第 30 行
在 GIS_yingyan.Program.Main() 在 E:\桌面\GIS-yingyan\GIS-yingyan\Program.cs 中: 第 22 行
請問這是怎么回事啊,一直改不成功。
uj5u.com熱心網友回復:
這是9.x版本的寫法了,10.x版本遵循如下寫法即可:public IEnvelope = new Envelope() as IEnvelope;
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/247887.html
標籤:C#
