Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know COM basic question with ASP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello I am playing around with creating a simple ASP based component. In Visual Basic 6.0 I created a ActiveX.DLL and called it "Simple" then created a class file and also named it simple. I am using IIS5.0. I registered the component and I have 2 questions.
#1. When I run my ASP page I get the following error.
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: /testcom.asp, line 9

#2. I am also trying to play arond with unloading the DLL. I registered the component but now when I go to the Virtual directory the unload button is not enabled. Does the DLL file have to be under the Local Path that I set to the virtual root? Thanks
 
Firtsly, I would not out the DLL in a directory and simply register it. I would put the DLL into COM+. There is no need to regsvr32 the DLL that way, and you also don't have to stop the website to replace it. You only have to stop the DLL in COM+.

For question 1 you should be using something like:

Code:
set objDLL = Server.CreateObject("Simple.simple")

If this doesn't work then somethings gone wrong with the registration, or the instancing of the simple class is set wrong.


Hope this helps,

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top