在SharePoint 2010中,经常会遇到如下这个错误:
Error
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: ab4783ca-57dc-4e5c-82da-8d07e17c393f
Date and Time: 8/17/2011 1:53:16 PM
我们可以用powershell查看错误信息,具体命令如下:
Get-SPLogEvent -StartTime (Get-Date).AddMinutes(-5) | Where-Object {$_.correlation -eq "<guid>"} | Format-List
Note: 最好在所有的机器上都执行一下,因为log不一定会写到哪台机器上。
详细的信息可以参考:
http://www.cnblogs.com/ww3128/archive/2010/12/08/1899748.html
http://gvaro.wordpress.com/2010/04/15/even-more-on-correlation-ids-within-sharepoint-2010/
http://blogs.msdn.com/b/spses/archive/2009/12/18/sharepoint-2010-logging-improvements-part-1.aspx