IIS 5 & IIS 6
IIS custom error 404 problem
Last post Jan 05, 2008 06:07 PM by steve schofield
Dec 19, 2007 09:37 AM|zaby|LINK
We runing the same aplication(ASP .NET) on different webservers, and one of our server is faild to show the custom 404 error page (default IIS error page apper). Costum 404 error page can be opened via URL, and in the list of custom errors.
Dec 19, 2007 12:55 PMfirstname.lastname@example.org|LINK
Check the IIS logs, and make sure you clear the browser cache in case it was cached on the client side. Restart IIS, check permissions on your custom 404 page, check other custom error pages on the same server.
Dec 19, 2007 06:16 PM|zaby|LINK
Thx the tips, but logs are ok nothing strange. Browser cache is cleared. IIS restarted many times. I will try other custom error page.
Dec 19, 2007 11:36 PM|thomad|LINK
I don't understand what your problem is. Can you try to explain it again? If you get a 404 and don't know why: can you have a look into the log files and find out if the 404 has a sub-status code. Can you post the sub-status code?
Dec 20, 2007 04:41 AM|zaby|LINK
Sorry, my bad english ;) So I want handle the 404 error with own 404 error page. It work fine in some server, but one is by-pass the custom 404 error page and show the IIS default 404 error page.
Dec 22, 2007 05:55 PM|steve schofield|LINK
Here is an article that might help.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jan 04, 2008 08:12 AM|zaby|LINK
thanks, but nothing new.
Jan 04, 2008 09:52 PM|steve schofield|LINK
In asp.net you need to set the <customErrors> section. Make sure this is set in the web.config.
Jan 05, 2008 09:15 AM|zaby|LINK
if you take look to the pictrue you can see, the web.config is correct, the custom error page is apper on the list.
Jan 05, 2008 06:07 PM|steve schofield|LINK
I don't see the picture, but the custom errors in IIS are for non ASP.NET based pages. You need to declare the 404 error code in your web.config.