Friday, September 11, 2009

"An unexpected error has occurred” in Sharepoint - Find more details


Are you getting frustrated with “An unexpected error has occurred” in sharepoint 2007? I found some useful tips. You can get more error messages from MOSS especially when they are not written to the application log. Do follow the steps below to get more:
1. Go into the web.config of the specific sharepoint web and set custom errors to off. Search for customErrors tag
mode=”Off”
2. Turn on tracing and the callstack by setting both to true. Search for SafeMode
CallStack=”true” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”true”>
Though event viewer also stores vital informaiton but above tricks are handy when a log in not written to EV