Avatar of Overthere
Overthere
 asked on

IIS 7 and executing pages using localhost

I am revising classic ASP pages and have installed IIS 7. I am using Windows 10 and developing locally i.e. localhost. It is bind to port 80 and there are no conflicts with other software that I am aware of. I created a new website, testsite, made sure ASP was included. I created the virtual directory and Stop/started my web site. When I clicked on the "test connection" - it states "Authorization can not verify access to path c:\Inetpub\testsite"

When I click on the website, I can see my folder but not my pages.
When is use the url - http://localhost/testsite/test.asp - to test my page - it gives a 404 error.
I have also tried http://localhost:80/testsite/test.asp  - same results.
What is wrong and how do I fix it???
ASPWindows 10* localhostMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Overthere

8/22/2022 - Mon
Ryan Chong

is your ASP module installed for your IIS?

check this out, it should be similar for Windows 10.

Classic ASP Not Installed by Default on IIS 7.0 and above
https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
Overthere

ASKER
Yes, the ASP module was added. I am thought that would fix it but nooooo.
Ryan Chong

check this article out as well:

Warning: Authorization – Cannot verify access to path (C:\inetpub\wwwroot\)
http://blogs.msmvps.com/bernard/2009/11/04/warning-authorization-cannot-verify-access-to-path-c-inetpub-wwwroot/

btw, I assume if you're using local IP address instead of localhost, will that work for you?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Overthere

ASKER
No the local IP address will not work either. I am a stumped chump.
Ryan Chong

you may want to verify and see through this checklist?

Localhost connection issues list
http://iislogs.com/steveschofield/2007/03/17/localhost-connection-issues-list/
Overthere

ASKER
I will look into that. I did think of something that might be a solution. IIS creates a default web site that binds to port 80. I stopped that web site and my test site is bind to 80 also. I can not use port 81 because my Apache server is bind to 81. And I do not want to change Apache port - it works very well - I flip from IIS and Apache depending on what language.  So I was wondering that maybe I need to change the port my site is bind to - what other  ports can I bind to other 80 and 81? MY IP address is not static.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Overthere

ASKER
I did some experimenting. I moved my pages to the default web site and the html pages will work. But the asp pages will not.
When I view MIME types, I see htm and html but nothing for asp and I have installed the asp.
I can type in http://localhost and receive the welcoming page. I can execute htm/html pages but now receive a 500 error.
ASKER CERTIFIED SOLUTION
Ryan Chong

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Overthere

ASKER
Thank you for responding and trying to help. I now have IIS 7 working. Here's what I did:
Created a restore point
 I uninstalled everything that had to do with ASP.Net .
That just left asp module.
I double- checked the IIS options (per the link https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis) to make sure I had checked only what it showed.
Did a hard reboot of my computer.
Recopied the file folders and pages back into the www default web site.
The conclusion I have is there is something with that particular page that is causing an error.
It is probably a coding error or I have left out a directive. The original pages were developed with Visual Studio 6.
The page that phews is encoded by <% %> tags which should be acceptable and should work. SO my thought is that there is something in the coding that is causing the 500 error. I have script debugging options turned on in IE 11. But it does not show me any errors etc.
I would think it would display the error(s). I know I used to debug in that manner. But don't remember now how .
Your thoughts....
Ryan Chong

SO my thought is that there is something in the coding that is causing the 500 error. I have script debugging options turned on in IE 11. But it does not show me any errors etc.
so, 2 points...

1. is that mean you able to run a simple asp script?

can you have a simple page just to response out the today's date time? like:

test.asp
<%
response.write "Now = " & Now()
%>

Open in new window


2. if there's a particular error in your script, what browser are you running your page? do you see something from the Windows' Event Log ?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Overthere

ASKER
I was trying to post the below comment while you were posting! And yes the simple asp page displaying the datetime works.  - still have something not working - not showing what my errors is w/o using developer tools - it used to show the errors on the page. along with the http error page.
Thank you for responding and trying to help. I now have IIS 7 working. Here's what I did:
Created a restore point
 I uninstalled everything that had to do with ASP.Net . My computer executes faster now too - LOL.
That just left asp module.
I double- checked the IIS options (per the link https://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis) to make sure I had checked only what it showed.
Did a hard reboot of my computer.
Recopied the file folders and pages back into the www default web site.
The conclusion I have is there is something with that particular page that is causing an error.
It is probably a coding error or I have left out a directive. The original pages were developed with Visual Studio 6.
The page that phews is encoded by <% %> tags which should be acceptable and should work. SO my thought is that there is something in the coding that is causing the 500 error. I have script debugging options turned on in IE 11. But it does not show me any errors etc.
I would think it would display the error(s). I know I used to debug in that manner. But don't remember now how .
It used to show me the error like 500 etc. but would also show what the script was too. Doesn't now. I would like to fix that too. Any clues?
I know I can use developer tools but the other way was much nicer.
Your thoughts....
Overthere

ASKER
I think I may have that working now too - WHEW - what a mess, huh?!!
Again, I thank you. Always learning something new...
Overthere

ASKER
Happy Happy! Thank you - this is why I love EE.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Overthere

ASKER
I now receive detail errors with the error pages. I had to go into IIS and edit the feature settings to detail error messages. Here is the link that shows how to do it.
And I have included a snapshot.

http://stackoverflow.com/questions/2640526/detailed-500-error-message-asp-iis-7-5

:}
Edit-Details-Settings.JPG
Ryan Chong

Coool, tks for the sharing!
Overthere

ASKER
Sharing is always good, and you never know - am sure others have had this problem etc.  :}
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck