Each time you open the error page, the SharePoint error displays the friendly message "An unexpected error has occurred", and is friendly to you basically can't understand what is wrong, how to do?
Modify the Web. config file configuration so that you can display more detailed information:
1. Change the mode of <customerrors mode= "on"/> to "Off"
2, will <safemode ... Callstack= "false" ... Allowpageleveltrace= "false" > CallStack and Allowpageleveltrace properties set to "true"
Specific modification Location:
1. Modify the contents of the Web. config file under the "C:\Program Files\Common files\microsoft Shared\Web Server Extensions\14\template\layouts" path:
<customerrors mode= "Off"/>
2. Modify the contents of the Web. config file under the "C:\inetpub\wwwroot\wss\VirtualDirectories\80" path:
Callstack= "true"
<customerrors mode= "Off"/>
Display the actual error message when an error occurs in SharePoint 2010 when you open a webpage