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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: