SharePoint DIY

Main navigation

  • ← Removing Specific Lists and Libraries from Search
  • Missing Web Parts for My Site →

Turn Off Custom Errors in SharePoint

Posted on Mar 05, 2009 by admin

There will come this time, either in development or maybe even in production when you are presented with that annoying ‘friendly?’ error page that SharePoint displays when there is an issue somewhere in the code.

SharePoint Friendly Error message

Of course this makes debugging a pain, however – there is a solution to turn the ‘friendly’ SharePoint error messages off and get the ASP.NET error message along with the call/stack trace outlining the issue.

By making two quick adjustments to the web.config file for the particular site we can turn the ‘friendly’ SharePoint Error message on / off.

  1. Follow the following instructions to do so:
  2. On the Web server, navigate to the site directory: [Drive Letter]:InetpubwwwrootwssVirtualDirectories[directory for site]
  3. Make a quick backup of the web.config file (simply copy / paste the file in the same directory)
  4. Open the web.config file in Notepad.
  5. Search for “CallStack”. Change the CallStack status to “true”. Example: <safemode maxcontrols=”200″ callstack=”true” directfiledependencies=”10″ totalfiledependencies=”50″ allowpageleveltrace=”false”>
  6. Search for “CustomErrors”. Change the mode to “Off”. Example: <customerrors mode=”Off”>
  7. Save and close the file.

And there you go, now you will see the the ASP.NET error message along with the call stack/stack trace screen outlining the issue.

To turn the SharePoint ‘friendly’ error messages back on, just walk through the steps setting the CallStack to “false” and customErrors mode to “On”.

Category: Articles, Tutorials

top ^

Leave a Reply Cancel reply

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

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts

  • Create a nicer looking hyperlink instead of the full URL using simple HTML
  • “The template you have chosen is invalid or cannot be found” – Solution
  • Making the “Encoded absolute URL” work with a list in SharePoint
  • Export a SharePoint site as a Site Template (.stp file)
  • Upload and use a site template (.stp) in SharePoint

Recent Comments

  • RYAN on Add a new subsite using SharePoint Designer
  • JAMES on “The template you have chosen is invalid or cannot be found” – Solution
  • SEAN on The paste text dialog box
  • Webmaster on Security settings for a subsite
  • morison dony on Export a SharePoint site as a Site Template (.stp file)

Archives

  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009

Categories

  • Articles
  • Featured
  • Tutorials

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Go Metal Detecting!

Check it out: The Best Metal Detector Store @ Serious Metal Detecting


  • Adventure Metal Detectors
  • Treasure Metal Detectors
  • Gold Metal Detectors

Minelab E-TRAC for sale at Serious Detecting

Tags

HTML MOSS Outlook SharePoint Designer Workflow WSS

Categories

  • Articles
  • Featured
  • Tutorials

Search

SharePoint DIY | Copyright SharePoint DIY