Enabling ASP Errors in Windows 2012 R2 Server

On Windows Server 2012 R2 ASP errors are not displayed in browser, instead visitor get a generic error message like.

asp_error_generic

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

It links to page

http://go.microsoft.com/fwlink/?LinkID=82731

This error is not helpful, programmers need more detailed error message to fix/debug the issue. To enable ASP Errors, go to

IIS > SERVERNAME

iis_asp

Click on ASP Button. On Next Page, expand debug properties

asp_debug_property

Set value of Send Errors To Browser options to True.

asp_send_errors_to_browser

After this is done, you will get detailed error message in browser.

asp_detailed_error


Posted in Windows