Jump to content

Can't access ASP file with IIS


lehtchod

Recommended Posts

I just installed IIS (using Add Windows Components in Control Panel). It seemed to install okay. In the Microsoft Management Console, it shows as having been started, with the expected home directory of inetpub/wwwroot. I can stop and start IIS from the console, and bring up the help file at http://localhost/iishelp/iis/misc/default.asp.

I put an ASP file in the inetpub/wwwroot directory and tried to access it from Internet Explorer but it wasn't found. I have tried http://localhost/squareroot.asp and http://aoffice1/squareroot.asp (where "AOFFICE1" is my computer name). In both cases, I get the "Page cannot be displayed" message.

Any idea what I'm doing wrong?

Thanks in advance for any help you can give.

Andy

P.S. I've attached the ASP file I'm using, in case that's helpful.

squareroot.asp

Link to comment
Share on other sites


Have you chosen to enable scripts? Without this ticked it won't run any code. The attachment you posted appears to contain valid ASP code.

Also, within IE, untick the option sayng "how friendly HTTP error messages", then you should see a better error message.

HTH,

Jim

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...