I know this is nothing new and most of us knew it already, but I might just post in my blog for my own references. When you open SharePoint page, sometimes you get annoying error “Unexpected error occurred” and there is no further explanation to it.
By enable debugging in your site web.config file, you could see the trace log and will be more helpful when you googling.
Steps to modify your web.config file:
- Go to your web.config file normally located at C:\inetpub\wwwroot\wss\VirtualDirectories\<port number>
- Backup your current web.config file
- Open web.config file with notepad
- Update attributes like below:
<configuration> <SharePoint> <SafeMode CallStack="true" /> </SharePoint> <system.web> <customErrors mode="Off" /> <compilation debug="true" /> </system.web> </configuration>