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?