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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem calling COM component from ASP page

Status
Not open for further replies.

Rachefur

Programmer
Jul 23, 2003
5
US
Hi,

I am trying to call a COM component from an ASP page. The dll is registered on the web server and set up in Component Services. It works fine when I call it from a VBScript file, as well as from a VB app using CreateObject. When I try to call it from an ASP page, however, I get the following error on the Server.CreateObject:

Microsoft VBScript runtime (0x800A01A8)
Object required: ''

My code in the ASP page is as follows:

Dim objreg
Set objreg=Server.CreateObject("RegistryCourier.clsRegistryCourier")

Thanks for your help,
Rachel
 
you have a line number it's failing on ?

[thumbsup2]DreX
aKa - Robert
 
Thanks for pointing out the line number! I was able to get rid of the "Object Required" error. Unfortunately, I didn't realize that another part of my code was causing that problem (lack of web development experience). Now, however, I'm getting the following error on the Server.CreateObject (line 101 is the Server.CreateObject):

Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/electionformtest.asp, line 101

The call to Server.CreateObject failed while checking permissions. Access is denied to this object


I've tried restarting IIS, moving the dll to a different directory, and restarting the web server- all to no avail. Do you have any suggestions?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top