COM +:NotImplementedException

时间:2010-09-21 08:24:18

标签: .net 32bit-64bit com+ notimplementedexception

我正在尝试设置自己的COM +组件(作为库应用程序运行)但没有成功。

当我尝试创建它时,我得到的只是一个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

1 个答案:

答案 0 :(得分:0)

我没有删除旧的.tlb文件(对于以前的版本)。删除它们有帮助。

相关问题