Hello. Thanks for visiting.

Have questions about Server Intellect?

I'm here to help.

Call us toll free at 1-855-850-HOST(4678)

Server Intellect
(855) 850-HOST

Toll Free 24/7/365        (4678)

Get help from a Microsoft Certified Engineer.

Intellect Connect

Technical problem with your Windows Hosting?

Let our Microsoft Certified experts handle the problem for you.
Chat Now

How to Disable ASP.NET Custom Errors in Web.config

Many times during the processing of an ASP.NET application, you will get the following default runtime error.

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.
Details: To enable the details of this specific error message to be viewable on the local server machine, please create a tag within a “web.config” configuration file located in the root directory of the current web application. This tag should then have its “mode” attribute set to “RemoteOnly”. To enable the details to be viewable on remote machines, please set “mode” to “Off”.

This is a generic error generated by ASP.NET When customErrors are set to ON. To resolve this issue, create a web.config file if one is not already present in your C:\Inetpub\wwwroot\yourdomain directory.

Once you’ve located/created web.config edit the lines containing the configuration element. If the element does not exist, add the element under the element.

You can locate the element by hitting CTRL+F and searching for it.

Change the to

<customErrors mode="On"/> to <customErrors mode="Off"/>

Note: It is case sensitive – it must be “Off” and not “off”.

When saved, ASP.NET should restart itself. To test your application, enter the URL in the browser.

Your final result should be a completely different (and detailed) ASP.NET error page, similar to the following.

If you need any assistance with this process, or encounter any issues, please don’t hesitate to contact our Technical Support Department.

Having Problems with Windows Server?

Try our troubleshooting service

  • Microsoft Certified Engineers
  • Remote Log-in to Your Servers
  • End-to-End Troubleshooting

Our Certified Technicians have been supporting Microsoft® products for well over a decade.

Tell us where you are getting stuck

Get Help Now!

Having Trouble Solving This Problem?

Let our Microsoft® Certified Engineers fix it for you.
Just $50.00 one time fee.

Having Trouble Implementing This Solution?

Why not let our Microsoft® Certified Engineers do it for you.
Just $50.00 one time fee.

Request Immediate Expert Help

Interested in letting our experts solve your IT problems for you?
Get a free, no-obligations consultation with one of our experts today!

Call us at (855) 850-HOST

Chat Now

Start Your Order

X

This form does not accept free e-mail accounts. Please enter a business e-mail to submit it.

Submit Form Cancel

Please wait...

Submitting your info. This may take less than a minute.