Posts Tagged 'errors'

Modify web.config file to display detailed error messages

I was dealing with another one of those “helpful” SharePoint error messages today:

“An unexpected error has occurred.”

Nishant Rana’s blog post had the exact steps needed to get SharePoint to spit out the details:

http://nishantrana.wordpress.com/2009/03/24/%E2%80%9Can-unexpected-error-has-occurred%E2%80%9D-error-message-in-sharepoint/

I’m bookmarking this one!

The following two web.config files will need to be updated:

  • C:\inetpub\wwwroot\wss\VirtualDirectories\<web app name>\web.config
  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config

Find out the following entry

<SafeMode MaxControls=“200“ CallStack=“false“ DirectFileDependencies=“10“ TotalFileDependencies=“50“ AllowPageLevelTrace=“false“>

And make following changes to it

 <SafeMode MaxControls=“200“ CallStack=“true“ DirectFileDependencies=“10“ TotalFileDependencies=“50“ AllowPageLevelTrace=“true“>

 <customErrors mode=“On“ />

To

<customErrors mode=“Off“ />


RSS SharePoint Team Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Ben Curry’s Blog

  • I'm at the ATL users group Monday night, Nov 16th November 15, 2009
  • Upgrading to SharePoint Server 2010 November 3, 2009

RSS Bud Ratliff blog

  • An error has occurred; the feed is probably down. Try again later.

RSS SharePoint PS Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Lori Gowin’s Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Greg Kamer’s Blog

  • An error has occurred; the feed is probably down. Try again later.

Blog Stats

  • 84,097 hits

Follow

Get every new post delivered to your Inbox.