我试图实例化我自己的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”编译的,webservice在其中运行x64ASP.Net4应用程序池。
hr结果:-2147467263