Table of Contents


Background

An asp.net application in Windows server 2012 r2 and when you to access it from the remote machine, you surprisingly get the following error which you don't get locally.

Screenshot of the Error

Reason for the Error

When you access the page from server machine (Remote machine) , IIS assumes that you could handle the error by yourself and it won't show the default error pages to US.

How to resolve this error

Resolving this error will be very easy, you just need to add one line of code in the Web config file as follows:

This tells the IIS that we didn't handle/provide any custom page for the error, so you could provide the default error pages which are already configured by default like below: