2010-09-21 24 views
0

我試圖讓我自己的COM +組件(作爲庫應用程序運行)沒有成功。COM +:NotImplementedException

我得到的是一個NotImplementedException當我嘗試去創造

dim myComponent As New MyComponent() 

堆棧跟蹤是沒有太大的幫助:

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)  
    at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)  
    at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)  
    at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)  
    at MyApp.MyMethod() in D:\blabla\MyService.asmx.vb:line 66 (this line have been modified by me) 

的COM +組件被編爲「AnyCPU」和webbservice在ASP.Net 4應用程序池中運行x64。

HRResult:-2147467263

回答

0

我沒有刪除舊的.TLB文件(以前的版本)。刪除他們幫助。

相關問題