Getting More Information from the Unexpected Error
I know this has been covered time and time again but I still run into the occasional SysAdmin who does not know what to do with the Unexpected errors. So here are the steps to get the error callstack and shed some light on your unexpected error.
1) Go to the MOSS site for which you would like to enable it.
The default location is at c:\inetpub\wwwroot\wss\VirtualDirectories 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 change it to
<SafeMode MaxControls=“200“ CallStack=“true“ DirectFileDependencies=“10“ TotalFileDependencies=“50“ AllowPageLevelTrace=“true“>
4) Also find
<customErrors mode=“On“ />
Change it to
<customErrors mode=“Off“ />
5) Save and close web.config.