SharePoint 2010 Custom Errors

About a year ago I wrote a article on deactivating the custom errors off SharePoint 2007. That had to be done in the following manner:

Step 1:


<SafeMode MaxControls="200" CallStack="false" >


<SafeMode MaxControls="200" CallStack="true" >

Step 2:

<customerrors mode="Off" />

If you do this on a SharePoint 2010 installation you will still get the following error:

 Server Error in ‘/’ Application.

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 errors states that you did not make the change. This is because there is another web.config file that is being loaded. This file can be found in the following location:

 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config

If you change this file you will be able to see the .net errors. If you would like to see custom errors on Central Administration you will also have to change the web.config file in the admin folder off the 14 hive:

 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config

Happy Coding.

Related Posts

Active Directory Picture Synchronization When you have stored the pictures of employees in Active Directory you would like to have the option to synchronize these pictures to their SharePoint...
Deleting a Project Service Application within SharePoint 2010 A couple of days ago I deleted my Project Server Web application because I wanted to recreate it. When I tried to create a new Project Web App ...
Deleting the extended web application This post I’m as a reminder because a few days back when I was working on a production environment for one of our clients. I had created an extend...
Office 2010 and SharePoint 2010 Service Pack 1 Two days ago Microsoft released the first Service Pack for the 2010 Office suite. This means there is also a Service Pack for SharePoint 2010. ...
SharePoint 2010 Content Organizer Feature Within SharePoint 2010 Microsoft has changed a lot of the content management features. One of those features is content routing which you can do with...
Creating Metadata Properties through code – SharePoint 2010 When you work on SharePoint project you often see solutions that are built by using the search engine of SharePoint. To perform queries against the s...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.