I have a virtual directory called "test" on my local machine.
My web site has default document of (amongst the usual) "index.asp"

Assume the file has the line "<% Response.Write("Hello World") %>" in
it...

I can access the file by going to "http://localhost/test/" in my
browser,
however when I try and access "http://localhost/test/index.asp" i get
a 404 error - just a plain old every day run of the mill 404!

If I turn directory browsing on and go to "http://localhost/test/", is
shows one file in the directory : "index.asp"

When I click on that link, I get 404 error again!!!


HELP!!!

My settings are as per the default XP installation except for adding
"index.asp" to the default document list.

Any help would be very much appreciate.

Regards,
james.

Re: problem accessing ASP files by name in IIS5.1 by David

David
Thu May 10 03:29:04 CDT 2007

What you describe is non-default behavior, so you need to identify
what is non-default about your installation.

Can you check the IIS Web logs for your 404 request and report the
exact log entry.

Are you running URLScan or other such server-behavior-modifying ISAPI
Filters.

It sounds you have URLScan installed and .asp extension is not
allowed, so URLScan would reject requests like http://localhost/test/index.asp
with a plain 404.

http://localhost/test/ works because there is no .asp extension in the
URL for URLScan to reject, and at DefaultDoc resolution time /
index.asp is appended but URLScan has already been triggered, so no
404 rejection.

Directory browsing works because instead of DefaultDoc resolution,
DirBrowsing takes effect and generates the directory listing response.
When you click on the link, it is the same as typing "http://localhost/
test/index.asp", which means you will get the 404 again.

The blog entry is for IIS6 not IIS5.1 on XP, but the ideas are close
enough to be relevant:
http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_IIS_6_Request_Processing_Basics_Part_1.aspx


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//




On May 10, 12:15 am, jpric...@gmail.com wrote:
> I have a virtual directory called "test" on my local machine.
> My web site has default document of (amongst the usual) "index.asp"
>
> Assume the file has the line "<% Response.Write("Hello World") %>" in
> it...
>
> I can access the file by going to "http://localhost/test/" in my
> browser,
> however when I try and access "http://localhost/test/index.asp" i get
> a 404 error - just a plain old every day run of the mill 404!
>
> If I turn directory browsing on and go to "http://localhost/test/", is
> shows one file in the directory : "index.asp"
>
> When I click on that link, I get 404 error again!!!
>
> HELP!!!
>
> My settings are as per the default XP installation except for adding
> "index.asp" to the default document list.
>
> Any help would be very much appreciate.
>
> Regards,
> james.


Re: problem accessing ASP files by name in IIS5.1 by jprice21

jprice21
Thu May 10 20:15:27 CDT 2007

On May 10, 6:29 pm, David Wang <w3.4...@gmail.com> wrote:
> Are you running URLScan or other such server-behavior-modifying ISAPI
> Filters.
>
> It sounds you have URLScan installed and .asp extension is not
> allowed, so URLScan would reject requests likehttp://localhost/test/index.asp
> with a plain 404.
>

You are absolutely correct, URLScan was indeed running on the server
(now disabled).
It was also causing the issues I was having creating Unix/Wordpress
style permalink URLs. (also now working)

Thanks again for all your help.
I will have to do some reading regarding URLScan configuration when I
next face this issue.

Regards,
James.