Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register COM Component for Classic ASP

I'm upgrading an old Windows 2003 server (32-bit) with IIS 6 to a Windows 2008 server (64-bit) with IIS 7.5. I'm in the process of installing necessary DLLs on the new machine (I only need two). The first one worked fine. The second one, ASPIMAGE.DLL is causing some trouble.

Here's what I've done (same process that worked for XZIP.DLL):

  • Move ASPIMAGE.DLL to C:\Windows\SYSWOW64
  • C:\Windows\SYSWOW64\regsvr32.exe C:\Windows\SYSWOW64\ASPIMAGE.DLL - I get a prompt saying "DLLRegisterServer in ASPIMAGE.DLL succeeded". I've run this multiple times - I hope that's not an issue.
  • Set "Enable 32-Bit Application" to True in the Application pool. Restarted the Site and AppPool just to be sure.
  • Attempt running code (which works fine on the Win2003 machine):

I get this error:

Server object error 'ASP 0177 : 800703e6'

Server.CreateObject Failed

/scripts/update/resize.asp, line 2

800703e6

Note that I've also tried this as a replacement, and I have the same issue (it looks like it registers fine, but the code can't see it): http://code.google.com/p/aspnetimage/

Any ideas what the issue is? It's strange to me, because it seems like it registers fine, but ASP can't find it.

like image 474
dtbarne Avatar asked May 22 '26 02:05

dtbarne


1 Answers

I was able to solve the problem by using AspNetImage as a replacement in conjunction with LoadPicture(): http://www.w3schools.com/vbscript/func_loadpicture.asp.

http://code.google.com/p/aspnetimage/

like image 168
dtbarne Avatar answered May 23 '26 23:05

dtbarne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!