2012-04-05 154 views
1

嘗試在服務器上創建COM對象。在C#中的服務器上創建COM對象:錯誤:80070776

代碼:

var myGuid = new Guid("530A1815-820C-11D3-BBB7-008048DE406A"); 
var myType = Type.GetTypeFromCLSID(myGuid, some_ip, true); 
ITInfoServer infsrv = (ITInfoServer)Activator.CreateInstance(myType); 
// infsrv.callSomeMethod (....); 

得到的錯誤:

Creating an instance of the COM component with CLSID {530A1815-820C-11D3-BBB7-008048DE406A} from the IClassFactory failed due to the following error: 80070776.

+1

0x80070776 = OR_INVALID_OXID: 「指定的對象導出未找到」。 – Rup 2012-04-05 11:57:46

+0

@Rup,謝謝。 「未找到指定的對象導出程序。」 - 這是什麼意思? – VextoR 2012-04-05 12:01:40

+2

不是我的專業領域,對不起。 [此MSDN頁面](http://msdn.microsoft.com/en-us/library/cc226948.aspx)聽起來像一個DCOM錯誤:也許你的機器正試圖遠程到另一臺機器來獲取COM對象,但另一臺機器沒有配置對象給你嗎? – Rup 2012-04-05 12:55:22

回答