IIS6 will not serve a 404 error for .asp

IIS6 will not serve a 404 error for .asp

am 03.09.2007 23:41:04 von bill

Hello,
currently on a win2003 server using IIS6. My problem is with the
classic asp pages. All my asp pages are serving up fine. But due to a
recent restructure of the website, all the url's changed. I recently
discovered that all my non existing .asp url's are returning 500
errors instead of 404. It's really weird! I can make up any page name
I want, but if it ends with .asp it returns a 500 error instead of
404. This is only happening with .asp urls, any other page extension
returns the correct header status. Any one have any ideas?

Re: IIS6 will not serve a 404 error for .asp

am 04.09.2007 05:50:31 von Bernard

Disable IE friendly error msgs, then post the actual msgs here.
HOW TO: Troubleshoot an "HTTP 500 - Internal Server Error" Error Message
http://support.microsoft.com/?id=311766

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


wrote in message
news:1188855664.873340.313470@k79g2000hse.googlegroups.com.. .
> Hello,
> currently on a win2003 server using IIS6. My problem is with the
> classic asp pages. All my asp pages are serving up fine. But due to a
> recent restructure of the website, all the url's changed. I recently
> discovered that all my non existing .asp url's are returning 500
> errors instead of 404. It's really weird! I can make up any page name
> I want, but if it ends with .asp it returns a 500 error instead of
> 404. This is only happening with .asp urls, any other page extension
> returns the correct header status. Any one have any ideas?
>

Re: IIS6 will not serve a 404 error for .asp

am 04.09.2007 16:46:00 von bill

Friendly errors msgs is turned off, yet it shows nothing but:
HTTP/1.1 500 Server Error

Web Log shows:
/test.asp =A6-=A6ASP_0147=A6500_Server_Error 80

Again, these pages do not exist. they should be returning a 404, not a
500

I can try any extension for a non existing page
"jsp, .aspx, .html, .htm, etc" and I get a proper 404 header, just
not .asp

Re: IIS6 will not serve a 404 error for .asp

am 05.09.2007 03:32:30 von David Wang

On Sep 4, 7:46 am, b...@countyads.org wrote:
> Friendly errors msgs is turned off, yet it shows nothing but:
> HTTP/1.1 500 Server Error
>
> Web Log shows:
> /test.asp =A6-=A6ASP_0147=A6500_Server_Error 80
>
> Again, these pages do not exist. they should be returning a 404, not a
> 500
>
> I can try any extension for a non existing page
> ".jsp, .aspx, .html, .htm, etc" and I get a proper 404 header, just
> not .asp


This means you have at least two problems:
1 The application mapping for .asp has been modified from default.
Please enable the checkmark on "Check if file exists" for the .asp
application mapping.
2 You have code within your ASP pages, probably some global.asa, that
is not liking the URL restructuring, fails, and causes the 500. Fix
your code.

The problem is not that ASP is behaving weirdly and returning 500s. It
is that you (or someone else) have configured IIS incorrectly and
wrote misbehaving ASP code that results in this behavior.


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

Re: IIS6 will not serve a 404 error for .asp

am 05.09.2007 06:52:05 von Bernard

For asp error, check if you enabled 'send detail error msgs to client
browser'.
refer this article
http://classicasp.aspfaq.com/general/why-do-i-get-a-500-inte rnal-server-error-for-all-asp-errors.html


--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


wrote in message
news:1188917160.027885.48740@k79g2000hse.googlegroups.com...
Friendly errors msgs is turned off, yet it shows nothing but:
HTTP/1.1 500 Server Error

Web Log shows:
/test.asp ¦-¦ASP_0147¦500_Server_Error 80

Again, these pages do not exist. they should be returning a 404, not a
500

I can try any extension for a non existing page
".jsp, .aspx, .html, .htm, etc" and I get a proper 404 header, just
not .asp