General Bloging

Development and Stuff

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

SharePoint 2007 Show Error Messages for Debugging

Debugging SharePoint errors is  a pain.  You normally get the the  "An unexpected error has occurred" error message is shown.

Sometime there is nothing in the event log or trace log.

To enable detailed error messages in the browser do the following in web.config 

<SafeMode MaxControls="200" CallStack="false"… />  change to  <SafeMode MaxControls="200" CallStack="true" … />

The customError setting must be changed to "Off":     <customErrors mode="Off"/>

After these changes, the "An unexpected error has occurred" should no longer be shown and you should a standard ASP.NET error page.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by gurney on Tuesday, March 18, 2008 8:58 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Thursday, May 15, 2008 1:17 AM