仅在服务器上出现 COM 问题 800A01AD
我有一个 .NET 库,我试图通过 COM(hMailServer 的 VBScript 脚本)使用它。我在我的本地开发盒(Windows 7 x64)上一切正常。但是,将 DLL 复制到我的服务器 (Windows Server 2008 x64) 后,当 VBScript 运行时,我不断收到以下错误:
错误:800A01AD - 说明:ActiveX 组件无法创建对象: 'hMailServerPlugins.EventHandlers' - 行:2 列:1 - 代码:(null)"
我已经给程序集起了一个强名称。我将程序集放在与 hMailServer 相同的目录中,并使用它注册了它
regasm hMailServerPlugins.dll /代码库/tlb:hMailServer.tlb
引用也显示在程序集中!我什至尝试将 hMailServer 服务更改为使用管理员用户凭据启动,以确保这不是安全问题。
有什么想法吗?
I have a .NET library that I'm trying to use via COM (hMailServer's VBScript scripts). I got it all working on my local, development box (Windows 7 x64). However, after copying the DLL to my server (Windows Server 2008 x64) I keep getting the following error when the VBScript runs:
Error: 800A01AD - Description: ActiveX
component can't create object:
'hMailServerPlugins.EventHandlers' -
Line: 2 Column: 1 - Code: (null)"
I've given the assembly a strong name. I put the assembly in the same directory as hMailServer and I've registered it using
regasm hMailServerPlugins.dll
/codebase /tlb:hMailServer.tlb
the references show up in the assembly too! I've even tried changing the hMailServer service to startup using Administrator user credentials to make sure this isn't a security thing.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将这篇文章发布给安托万和其他任何可能偶然发现此帖子的人。
事实证明,我必须显式调用 64 位 regasm 才能正确注册该库。我机器上的位置是
希望有帮助
I'm posting this for Antoine and anyone else who might stumble upon this thread.
It turned out that I had to explicitly call the 64bit regasm to properly register the library. The location on my machine is
Hope that helps