Andrew Connell [MVP MOSS]
1543 Posts |  42 Articles |  4748 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
SharePoint Quick Links
Article Categories
Archives
Post Categories


Add to Technorati Favorites

So... all you SharePoint v3 developers out there (WSS v3 / MOSS 2007)... don't you just love when you run into that dreaded SharePoint error "Unknown error occurred" message on the generic yellowish & blue page? It's about as effective as the "Service Engine Soon" light on your car dashboard. Of course, sometimes they get a bit more detailed, but you still get stuck without enough info.

One thing I do on all my development SharePoint sites is to pop open the web.config and make two tweaks so I get the familiar ASP.NET yellow screen of death (YSOD) with the true exception and underlying call stack:

  • Turn the call stack on by searching for <SafeMode ... CallStack="false" ...> and change it to CallStack="true".
  • Turn off the SharePoint error pages by turning off custom error pages: change <customErrors mode="On" /> to mode="Off".

Shane posted about this a few weeks back. After a few questions were posted about this, I figured I'd repost it here as well.

Technorati tags: , , ,
posted on Thursday, February 01, 2007 9:34 PM

Feedback

# re: Making sense of SharePoint errors 2/7/2007 6:44 PM Martin Palmer
Gravatar Thanks Andrew - thats good stuff!

# re: Making sense of SharePoint errors 2/26/2007 5:03 AM Anders Rask
Gravatar Dont forget

<compilation batch="true" debug="true">

to enable debugging :-)

# re: Making sense of SharePoint errors 12/3/2007 10:19 AM Tom Kretzmer
Gravatar This was extremely helpful. Thanks a million!

# re: Making sense of SharePoint errors 3/6/2008 11:49 AM Lucy Hyde-Thomson
Gravatar spot on thank you had missed the safe mode bit - now I know where my registration user control has gone awry!

# re: Making sense of SharePoint errors 8/25/2008 2:57 PM Dnevarez
Gravatar I set up Sharepoint 2007 and it has been working fine. Suddenly for no reason I attempt to upload a file and I get an error " Error. Unable to complete this operation. Please contact your administrator."
I am the admin. and I have plenty of space on my "C" drive.
Can anyone help?

# re: Making sense of SharePoint errors 8/27/2008 7:47 AM AC [MVP MOSS]
Gravatar Dnevarez-
As always, check the ULS logs and Event log for more information.

# re: Making sense of SharePoint errors 3/26/2009 4:40 AM Shams
Gravatar Hi I am new to sharepoint, so need some help, this <safe Mode > Call Stack... where do i need to go to change it from false to true? and also how do i enable debugging?

I am using Sharepoint 3.0.

Thanks.

# re: Making sense of SharePoint errors 3/26/2009 8:27 AM AC [MVP MOSS]
Gravatar Shams-
In the web.config of the web app that contains the site collection you are testing.

# re: Making sense of SharePoint errors 6/22/2009 10:17 PM Cameron
Gravatar Halaluja

This is the most important peice of information for sharepoint development

You should rank this blog under "VERY IMPORTANT INFORMATION"

Thanks for sharing,
Cameron

# re: Making sense of SharePoint errors 11/11/2009 10:06 AM Steve Howlett
Gravatar Hi Andrew,


I want to get these errors on a live production system where i can not make this change to the web.config - any idea how i can get these errors please?

Thanks,

Steve

# re: Making sense of SharePoint errors 11/14/2009 1:50 PM AC [MVP MOSS]
Gravatar Steve-
Not possible... this is controlled by the web.config so that's were you need to make your changes.

# re: Making sense of SharePoint errors 12/17/2009 9:44 PM Daniel - SharePoint Administrati
Gravatar Hi Andrew thanks for this post, I have been getting a number of errors since migrating to a new environment, which I was able to resolve once it was more obvious what the underlying issue was. It ended up being a combination of a number of missing Web Part assembles which I first suspected. In my case, displaying errors was all that was required as the message displayed contained the specific details of the missing assemblies.

I also found the following article which explains how to enable errors, call stack trace, debugging and the ASP.NET tracing feature which may also help when troubleshooting SharePoint errors.

SharePoint: How to Show Full Errors, debug mode

( blog-sharepoint.blogspot.com/.../...show-full.html )

Thanks

Daniel

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 8 and 8 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2010 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License
Site design by Heather Solomon.

 
 
MOSS WCM Training
Looking for MOSS 2007 WCM developer training? Look no further! I teach my 5-day hands-on and online WCM classes for developers I offer through my company: Critical Path Training.

Get more information on the WCM courses!