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

ASP problem on IIS 4.0

Status
Not open for further replies.

Schwerzmann

Programmer
Aug 29, 2000
5
CH
I wanted to run an ASP Database Connection on a IIS 4.0 (NT Server 4.0). The script works on every other IIS-Server. It starts with this line:

SET Conn=SERVER.CREATEOBJECT("ADODB.CONNECTION")

If I run it on the browser, it always returns the following error:

Microsoft VBScript runtime error ' 800a01ad'
ActiveX component can't create object

I tried a lot of possible solutions suggested on the Microsoft homepage and I reinstalled the Option Pack, but there's still the same error.

Reto
 
Thanks for your hint. I installed the latest MDAC (2.5) but there's still the same error.

Reto
 
The only other possiblity I can think of is that it's possibly a permissions problem. Other than that, I'm stumped.
 
Do you have an idea, what kind of permission could be wrong setted?

Reto Schwerzmann
 
I had the some problem and got round it by registering the component with MTS. I still not sure whether this is a solution or just a workaround
 
Could you please give me an example how to do this? Recently I read about how to register components with MTS, but I don't know what kind of file i have to register or what it must contain.

Thanks. Reto Schwerzmann
 
Thanks for your hints. It was a permission problem. I created a new IUSR_...-profile with the same permissions and it worked surprisingly (no idea why).

But now I have another problem: the performance is very bad. For a simple database request it takes 9 sec. On every other IIS Server it takes less than 2 sec. There's not much traffic on the server. Could it be a setting problem of the IIS-Server?

Reto Schwerzmann
 
You could also register the component with REGSVR32.EXE which is located in your WINNT\SYSTEM32
Locate you OCX or DLL file and drag and drop. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top