SharePoint 2007 – An unexpected error has occurred
December 1st, 2008
Sometimes things can and do go wrong when working with WSS or SharePoint. The first port of call should be the SharePoint Log files.
If this help then its a good idea to change the default behavour of the .NET web application to allow the application stack traces to be shown when the page fails to render. Simply locate your web applications web.config file and make the following changes:
From:
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
To:
<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
and also
From:
<customErrors mode="On" />
To:
<customErrors mode="Off" />