I need to cache one very important thing during one page cycle.
I want to use a unique request id like correlation id.
How can I get such an id in SharePoint?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See this excellent blogpost for details about using the SharePoint correlation ID: http://www.wictorwilen.se/Post/Working-with-SharePoint-2010-Correlation-ID-in-PowerShell-and-code.aspx
Update:
This is how he does it:
And then use it in code like below, perhaps in a catch statement: