Thanks to Rez’s blog spot for this one. Here’s how to get replace the “Unexpected Error Has Occurred” message with some ASP.NET debug code that you might be able to use to resolve whatever problem you’re having.
Edit the web.config of your SharePoint application – should be found in
Set the following values:
- Debug=”true” instead of the default of Debug=”false” (do a find on “debug”)
- CallStack=”true” instead of the default of CallStack=”false” (do a find on “callstack”)
- customErrors=”Off” instead of the default of customErrors=”On” (do a find on “customErrors”)
Finally, open the web.config file found at
drive:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TemplateLAYOUTS
And change the value of customErrors to “Off”.
After an IISReset, you should see better errors.