IIS 5 & IIS 6
Custom 404 error problems in ASP.NET 2.0/3.5
Last post Mar 30, 2008 11:28 AM by jrista
Mar 25, 2008 03:23 PM|jrista|LINK
ASP.NET custom 404 error
Mar 25, 2008 03:27 PM|jrista|LINK
Mar 26, 2008 06:59 AM|Rovastar|LINK
I am not sure here.
I presume using the standard IIS error pages (and no .NET extra stuff) it does redirect all ok if you change the 404 error page to a static one is it all ok?
What do the IIS logs say that happened?
It is difficult to work out what happens as the IIS part appears to work - it does redirect to another page your custom 404.aspx and often that is the scope for the IIS troubleshooting. It seems to be a problem
with you page and/or .net error redirecting. I would look at that code. I am not sure it is a problem with IIS.
In IIS, I believe. (I cannot check atm) if you redirect on error to another page that does not exist you will get a standard 404 error page - which would make sense otherwise it would get in an endless loop.
When you said 'appear on the boxes' do you mean it used to work all ok and now it doesn't?
If so trace back you steps to when it first appeared, what changed, etc.
Although I agree there are a fair few bugs with things like formatting (I want to cut and paste from MS word, please), etc *sigh* I disagree with you implication that this is a site by programmers for programmers.
I always understood this are site for IIS server admin which doesn't mean you have to be a programmer.......just as being an programmers doesn't mean you are an admin.
Mar 26, 2008 01:04 PM|jrista|LINK
Mar 26, 2008 08:21 PM|Rovastar|LINK
Yes I guessed it had to do with the query string before.
I presume if turn off all error redirection and you rename the file to say fred.aspx then the same thing will occur...
Could you tell me what the logs say about the error, the http status error code or more specifically the error sub codes.
Also while you are in the logs what are the Win status 32 error codes for that page.
This might give clues as to what is happening.
We know something wrong with the way the page handles the query string
maybe if you remove the /
have you doubled up the / in the code? or maybe it doesn't like the /
Mar 27, 2008 07:35 PM|jrista|LINK
Mar 27, 2008 09:50 PM|Rovastar|LINK
Win32 error code status 0 means all ok.
Can you turn the http status sub codes on in the logging. They are useful in general and might give more of a clue.
Mar 29, 2008 11:03 PM|CodingTheWheel|LINK
Don't know if this will help, but Internet Explorer will ignore custom 404s (and other error pages) and display a default version if they're beneath a certain size.
Other thing I would double-check is your URL rewriting, or the URL rewriting done by your CMS, if any. The URL '/404.aspx?aspxerrorpath=/test.aspx' ends with the pesky .aspx which can be a fly in the ointment for any URL rewrite logic that's not expecting
an .aspx in the query path.
If not that, it still sounds to me like a CMS issue.
Mar 30, 2008 11:28 AM|jrista|LINK