Set custom error pages in IIS 7 for .aspx extension
Today I came across with an error while adding custom error pages in IIS 7, While adding custom error pages for 404 I found every extension is working just fine while adding except .aspx extension, It is come out with the error as follows :
Error :
=========================
Server Error “/” Application The resource can not be found
=========================
Cause :
Because the custom error pages in IIS7 do not work for .aspx.
Solution :
You need to setup the .NET Error Pages for it as follows :
Start >> Administrative Tool >> IIS >> Websites >> Domain name >> Click on .NET error pages and add it.
Once it is added, Error will be gone!!!!
Leave a Reply