Andrew Connell [MVP MOSS]
1468 Posts |  40 Articles |  0 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
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

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 8 and 6 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 - 2009 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!


Upcoming Classes
 Hands-on WCM:
 Online WCM:
 » July 20-24, 2009


» Register today!