Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

An Unexpected error has occurred on my sites .When i try to View All my pages in my site it generates this error "Error An unexpected error has occurred.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 0541cbd4-548c-4788-a23e-bb4d3482efa7

Date and Time: 10/20/2012 10:31:00 PM "

share|improve this question
    
Umar, you can use SharePoint LogViewer to identify the error behind this correlation... Just open the lastest LOG file in this viewer and search for the correlation! –  Arsalan Adam Khatri Oct 20 '12 at 20:45
add comment

2 Answers

If the error is in a production environment, you can use the ULS Log Viewer to analyze the SharePoint Logs. To identify the error, you can use the Correlation ID as a filter or by grouping values as a treeview. Here's the link for ULS Viewer:

http://archive.msdn.microsoft.com/ULSViewer

If the error is happening on a development environment, you can enable stack trace to show on the page. This will simply show the error in the page, making debugging easier.

For this, you need to go to the virtual folder of your web application, and modify the web.config file like this to turn off CustomErrors and enable CallStack and AllowPageLevelTrace. You need to do this for each web application that you want to show errors in the page.

Under <system.web>

<customErrors mode="Off" />

Under <SharePoint> tag

<SafeMode CallStack="true" AllowPageLevelTrace="true">
share|improve this answer
add comment

Go to this path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

Open the LOG file (NOT .usage file) and find the error message with Correlation ID.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.