Question:
Anyone else seen this error:
set mailman = Server.CreateObject("ChilkatMail2.ChilkatMailMan2")
mailman.ConnectTimeout = 10
mailman.MailHost = popserver
--> set bundle = mailman.CopyMail() <-- this returns nothing and sets LastError
The error is:
ChilkatLog: CopyMail: DllDate: Dec 12 2012 UnlockPrefix: xyz Username: xyz$ Architecture: Little Endian; 64-bit Language: ActiveX / x64 VerboseLogging: 0 CoCreateInstance (ChilkatEmailBundle2) 1st try failed. A specified class is not registered in the registration database. Also can indicate that the type of server you requested in the CLSCTX enumeration is not registered or the values for the server types in the registry are corrupt.CoCreateInstance (ChilkatEmailBundle2) 2nd try failed. A specified class is not registered in the registration database. Also can indicate that the type of server you requested in the CLSCTX enumeration is not registered or the values for the server types in the registry are corrupt.Failed. --CopyMail –ChilkatLog
I tested this code and it worked fine:
set x = Server.CreateObject("ChilkatMail2.ChilkatEmailBundle2")
set x = nothing
Any specific features need to be installed on Win2008?
Bump ... anyone?
The LastErrorText indicates that you are using the 64-bit ActiveX:
Language: ActiveX / x64
I suspect your test with the VBScript is creating the 32-bit ActiveX instance:
set x = Server.CreateObject("ChilkatMail2.ChilkatEmailBundle2")
On a 64-bit computer, there are entirely separate registries for 32-bit and 64-bit. My guess is that the 32-bit ChilkatMail2.ChilkatEmailBundle2 is correctly registered in the 32-bit registry, but the 64-bit ChilkatMail2.ChilkatEmailBundle2 is NOT correctly registered in the 64-bit registry.
Re-register the 64-bit ChilkatMail2_x64.dll in the 64-bit registry, and I suspect the problem will be solved. See this for more information about registering a 64-bit ActiveX correctly: http://www.cknotes.com/?p=361
All the DLLs are registered in a stand-alone COM+ app (64 bit only). This is what I see in COM+ when I run the first set of code:
Here's what I see when I create the bundle object by itself:
So I think I'm creating the 64 bit version both times. Yes, just verified by trying to install a 32 bit component in that COM+ app and it would not allow it so this is definitely all 64 bit.
Bump ... anybody have any thoughts?
Just tried this on Win2003 (32 bit) with the 32 bit Chilkat components, v9.4. Looks like there is a problem running these components from COM+.
I tried giving the COM+ application admin rights but no change - same error as above. It appears to be a problem with the components. Haven't had this problem with any other vendor.
ChilkatLog: CopyMail: DllDate: Dec 12 2012 UnlockPrefix: xyz Username: WWW:NETWORK SERVICE Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0
CoCreateInstance (ChilkatEmailBundle2) 1st try failed. A specified class is not registered in the registration database. Also can indicate that the type of server you requested in the CLSCTX enumeration is not registered or the values for the server types in the registry are corrupt.CoCreateInstance (ChilkatEmailBundle2) 2nd try failed.
A specified class is not registered in the registration database. Also can indicate that the type of server you requested in the CLSCTX enumeration is not registered or the values for the server types in the registry are corrupt.Failed. --CopyMail --ChilkatLog
Just checking in if anyone is using the new 9.4 components in COM+?
bump, anyone using COM+?