开发者

COM issue 800A01AD only on server

开发者 https://www.devze.com 2023-01-12 02:05 出处:网络
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 (W

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 asse开发者_JS百科mbly 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?


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

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe

Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消