我试图实例化我自己的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
发布于 2010-09-21 16:37:17
我没有删除旧的.tlb文件(对于以前的版本)。移除它们会有所帮助。
https://stackoverflow.com/questions/3758489
复制相似问题