Skip Ribbon Commands Skip to main content

SharePoint Happenings

Help (new window)
Sign In
Navigate Up
Get Microsoft Silverlight
Install Silverlight plugin for a richer experience...
Blog Home |  Freeware |  Speaking |  About me

SharePoint error messages Unknown Error



Bookmark and Share

Top Tech Links










Top SharePoint Administrator Links









Top SharePoint Developer Links













NOTE: This blog has been moved to http://blog.philwicklund.com. If you'd like assistance, leave a comment on the copied post in the new location (hint, use search on the right to find the post).


This will seem like a silly post to most people, however, I've found that in my classes a surprising number of students get very frustrated with the error messages that SharePoint generates because the messages don't give any indication as to what the actual problem is. The offending message is the dreaded "Unknown Error" message.
 
The truth of the matter, however, is that SharePoint (actually ASP.NET) knows what the error is; it's just that the framework is keeping that information to itself.
 
If you open the web.config of the site you're experiencing the problem in (eg. c:\inetpub\wwwroot\wss\virtualdirectories\mysitename\web.config), and do a search for "CallStack" and toggle that element to "true". Then, do a search for "customErrors" and toggle that element to "off". Save the web.config file.
 
If you go back to your site and refresh the page, you should see the actual exception that was thrown and where it was thrown.
 
Lastly, if you did this change in production, you'll want to change it back, but that probably goes without saying ;)
 
-Phil