web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / “An unexpected error has oc...

“An unexpected error has occurred” error message in SharePoint.

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee
Normally within SharePoint if an error occurs we would be receiving quite an unhelpful error message i.e. “An unexpected error has occurred”. It is because by default the detailed error messages are turned off for security reasons.
 
Here are the steps for getting the full error messages
 
1)      Go to the MOSS site for which you would like to enable it.
Most likely to be found at c:inetpubwwwrootwssVirtualDirectories and a sub directory with your web application’s port number.
 
2)      Locate and open the web.config file for editing.
 
3)      Find out the following entry
<SafeMode MaxControls=200 CallStack=false DirectFileDependencies=10 TotalFileDependencies=50 AllowPageLevelTrace=false>
 
And make following changes to it
 
<SafeMode MaxControls=200 CallStack=true DirectFileDependencies=10 TotalFileDependencies=50 AllowPageLevelTrace=true>
 
4)      And
<customErrors mode=On />
To
<customErrors mode=Off />
 
5)      Save and close web.config.
 
 
That’s it …

Posted in MOSS, SharePoint Tagged: SharePoint

This was originally posted here.

Comments

*This post is locked for comments