Discussion:
ASP Classic+Capicom.dll+64 Bit
(too old to reply)
Jurgen_O
2007-11-22 07:47:00 UTC
Permalink
Hi,

Hope I have post in the right newsgroup and appreciate your help.

I have an ASP classic file (endec.asp) to encrypt/decrypt.
I can load the Capicom.dll, and it loads perfectly in 32-bit.
Code:
Set EncryptedData = Server.CreateObject("CAPICOM.EncryptedData")

Problem:
When move the endec.asp to a 64-bit machine, it is not able
to load the Capicom.dll.

Solution ?? Anybody?? Thanks.

Regards,
Brian Muth
2007-11-22 17:44:17 UTC
Permalink
You cannot load a 32-bit DLL into a 64-bit process.

However, you can install a 32-bit DLL into Component Services and then call it from a 64-bit process. I'd give that a try.

Also, see: http://tinyurl.com/yublrb

Brian
Post by Jurgen_O
Hi,
Hope I have post in the right newsgroup and appreciate your help.
I have an ASP classic file (endec.asp) to encrypt/decrypt.
I can load the Capicom.dll, and it loads perfectly in 32-bit.
Set EncryptedData = Server.CreateObject("CAPICOM.EncryptedData")
When move the endec.asp to a 64-bit machine, it is not able
to load the Capicom.dll.
Solution ?? Anybody?? Thanks.
Regards,
Jurgen_O
2007-11-23 07:40:01 UTC
Permalink
Hi Brian,

Thank you for your advice, i did try to do what you suggest
on the URL, it works with the VBS file.

VBS file can load the DLL after re-registering the
Capicom.dll in the SystemWOW64 folder.

Problem is, I cannot register a DLL through the Component Services
in our LIVE machine (restricted access to administrator only).

Any other way around for this really appreciated.

Jurgen
Post by Brian Muth
You cannot load a 32-bit DLL into a 64-bit process.
However, you can install a 32-bit DLL into Component Services and then call it from a 64-bit process. I'd give that a try.
Also, see: http://tinyurl.com/yublrb
Brian
Post by Jurgen_O
Hi,
Hope I have post in the right newsgroup and appreciate your help.
I have an ASP classic file (endec.asp) to encrypt/decrypt.
I can load the Capicom.dll, and it loads perfectly in 32-bit.
Set EncryptedData = Server.CreateObject("CAPICOM.EncryptedData")
When move the endec.asp to a 64-bit machine, it is not able
to load the Capicom.dll.
Solution ?? Anybody?? Thanks.
Regards,
Brian Muth
2007-11-23 16:12:44 UTC
Permalink
Post by Jurgen_O
Hi Brian,
Thank you for your advice, i did try to do what you suggest
on the URL, it works with the VBS file.
VBS file can load the DLL after re-registering the
Capicom.dll in the SystemWOW64 folder.
Problem is, I cannot register a DLL through the Component Services
in our LIVE machine (restricted access to administrator only).
Any other way around for this really appreciated.
Two ways come to mind. You could write your own 32-bit DCOM executable that acts as a wrapper for the Capicom.dll, or you could use
DLLHOST.EXE.

Brian
Jurgen_O
2007-11-26 06:32:00 UTC
Permalink
Thanks for your help Brian,

I just feel that it become a bit too complicated for me now.

Maybe I just need to find other way of doing it.

Thanks anyway.
Post by Brian Muth
Post by Jurgen_O
Hi Brian,
Thank you for your advice, i did try to do what you suggest
on the URL, it works with the VBS file.
VBS file can load the DLL after re-registering the
Capicom.dll in the SystemWOW64 folder.
Problem is, I cannot register a DLL through the Component Services
in our LIVE machine (restricted access to administrator only).
Any other way around for this really appreciated.
Two ways come to mind. You could write your own 32-bit DCOM executable that acts as a wrapper for the Capicom.dll, or you could use
DLLHOST.EXE.
Brian
Loading...