Windows OS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows OS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 30th, 2007, 07:07 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,968 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 13 h 40 m 9 sec
Reputation Power: 104
Problem registering DLL

Hi

I'm trying to migrate my website to a new Windows Server 2003 R2 Service Pack 2 server. I use an ActiveX component called Cast128 which allows me to do simple bits of encryption on the fly

On the old server I registered c:\windows\system32\cast.dll using REGSVR32 and all is well. On the new server I get the following error when I try to register the DLL:
Code:
---------------------------
RegSvr32
---------------------------
LoadLibrary("c:\windows\system32\cast.dll") failed - The specified module could not be found.
---------------------------
OK   
---------------------------
If I copy the DLL to, for example, c:\temp\ I can register it no trouble, although my ASP scripts can't use it. I'm guessing that this could be a permissions or dependency problem, but I'm a bit stumped. The odd thing is that if I try to open the DLL with, for example, Dependency Walker, I can't even see cast.dll in the open file dialog?

I'm absolutely baffled. So - two questions really:

1. Any ideas why REGSVR32 and other applications can't see cast.dll?

2. If I do register cast.dll in another folder, what steps do I need to carry out to enable Classic ASP to use the ActiveX component?

Thanks very much in advance
__________________
selwonk

If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more!

Reply With Quote
  #2  
Old October 30th, 2007, 04:47 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Haven't seen you here for a while!

For #2, it should not matter where the dll is physically located, since the component registration process abstracts the location of the file from the application, so the app only needs to know the progid to use the component. This holds for asp or any other COM compliant application. If you register ok on occasion but still can't use the component from asp I suspect you're right in guessing permissions.

As far as not being able to register the dll only in certain locations, assuming the acl's on the folder where the dll is located aren't blocking use of the dll, then my guess is the component relies on some other external component or file that isn't findable when the dll is in one of the failed-to-register locations. Just a guess.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows OS > Problem registering DLL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT