PDA

Click to See Complete Forum and Search --> : ASP won't work on Windows2000


compuGEEK
Feb 21st, 2001, 02:43 PM
ARGHH!!

I cannot seem to get ASP to work on Windows 2000 Server. IIS is configured correctly and runs an HTML page just fine, but the same cannot be said for an ASP page.

Has anyone encountered this before?

Feb 21st, 2001, 06:00 PM
First off...make sure you're requesting the page from IIS - not locally... use http://localhost/page.asp not c:\inetpub\wwwroot\page.asp ...this may be obvious but I just wanna make sure I don't miss something that silly...

Assuming that wasn't the problem... make sure the that you have the propper application mapping setup for asp...

Right click on My Computer and click Manage
Right click on Internet Information Services and click Properties
Click the Internet Information Services tab
Select WWW Service from the Master Properties list
Click Edit
Click the Home Directory tab
Click Configuration...
Click the App Mappings tab
Search down the list for a .asp entry... the executable path should read something like c:\winnnt\system32\inetsrv\asp.dll
If it's not there then click Add and add it in...
Type in the path above as the Executable, .asp as the extension and limit the Verbs to GET,HEAD,POST,TRACE
Fully restart IIS...you can do this from the command line with net stop iisadmin
Then net start w3svc
Or you can restart the machine

Failing all that what errors (if any) do you get...?

compuGEEK
Feb 22nd, 2001, 09:26 AM
Hi Matthew,

Thanks for your reply - Yes, all the necessary DLL's are installed, including the application's DLL.

The error I was initially receiving was HTTP 500 Internal Server Error: Server object, ASP 0178 (0x800A0005) The call to Server.CreateObject failed while checking permissions. Access is denied to this object. (KB Q255502)

What I did was add a DCOM entry for VB6.exe into the registry. The error I'm now getting is HTTP 500 Internal Error, with no further explanations.

Why is it that I'm able to publish an HTML page just fine, but when it comes to publishing any ASP page, I get the error?

Thanks,

CG

Feb 22nd, 2001, 04:44 PM
Try a simple asp page without any createobjects...<% response.write "test" %>...does that work ok?

If it does check the NT permissions of the com object you're trying to create (and of the folder it's in)... you need to give read/execute permission to either IUSR_<MACHINENAME> or IWAM_<MACHINENAME>...I'm not sure which is responsible for creating objects...

What object are you trying to create in the page...if it's that vb6 dcom one then i've never tried it...maybe that asp can't create it anyway...try a few other objects, like "ADODB.Connection" and "CDONTS.NewMail".

Clunietp
Feb 22nd, 2001, 10:57 PM
one of these should help

http://google.yahoo.com/bin/query?p=Server.CreateObject+failed+while+checking+permissions&hc=0&hs=0

compuGEEK
Feb 23rd, 2001, 12:17 PM
Thanks Clunietp - One of the links had a WebWorkshop aritcle that I will try.


Thanks again!

CG