首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >COM+:NotImplementedException

COM+:NotImplementedException
EN

Stack Overflow用户
提问于 2010-09-21 16:24:18
回答 1查看 169关注 0票数 0

我试图实例化我自己的COM+组件(作为库应用程序运行),但没有成功。

当我尝试创建它时,得到的只是一个NotImplementedException

代码语言:javascript
复制
dim myComponent As New MyComponent()

堆栈跟踪没有多大帮助:

代码语言:javascript
复制
   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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-09-21 16:37:17

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3758489

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档