代码之家  ›  专栏  ›  技术社区  ›  jgauffin

COM+:未实现异常

  •  0
  • jgauffin  · 技术社区  · 15 年前

    我试图实例化我自己的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

    1 回复  |  直到 15 年前
        1
  •  0
  •   jgauffin    15 年前

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