IIS 7 and Above
HttpRequestMessage.GetCorrelationId() always returns same Guid for di...
Last post Aug 09, 2018 02:31 PM by Mighty_J
Aug 08, 2018 01:31 PM|Mighty_J|LINK
HttpRequestMessage.GetCorrelationId() always returns same Guid for different request. Is there any IIS or System configuration that could solve this problem? This is happening in my ASP.NET Web API app deployed to Window Server 2012 with
.NET framework 4.7.1.
Aug 08, 2018 03:47 PM|lextm|LINK
You can only dig into the source code to see from where the ID is queried,
Looks like a pure ASP.NET thing right now.
Aug 09, 2018 06:45 AM|deepakpanchal10|LINK
I can see that you are working with ASP.NET Web Api.
I think that below is the best suitable forum for your issue.
You can try to post your issue there and check what community members and experts suggest you.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding.
Aug 09, 2018 02:25 PM|Mighty_J|LINK
Thanks Deepak. I did that already.
Aug 09, 2018 02:31 PM|Mighty_J|LINK
Thanks lextm. After going through code, I feel Trace.CorrelationManager.ActivityId could be always coming same value other than Guid.Empty.
This issue has gone away when I did a wrong time format in applicationHost.config after taking a backup. When I put back the original applicationHost.config with correct time format, issue reappears.
Wrong format I tried is bolded- <periodicRestart memory="0" privateMemory="0" requests="0" time="1.05:00:00">