System.Diagnostic.Trace.CorrelationManager.ActivityId始终是服务器上的Guid.Empty [英] System.Diagnostic.Trace.CorrelationManager.ActivityId is always Guid.Empty on server
问题描述
Hello Team,
我们使用'Microsoft.Practices.EnterpriseLibrary.Logging'登录我们的MVC应用程序。如果有任何错误,我们计划向用户提供"System.Diagnostic.Trace.CorrelationManager.ActivityId",以便用户可以检查错误的日志。
当我们在IIS Express上本地运行应用程序时,这很有效但是当我们将它部署到服务器时,ActivityId总是为空。
你能帮我们解决这个问题。 ?
谢谢,
Sujitha。
嗨Sujitha。
根据您的描述,您的案例与Asp.Net更相关,我建议您重新解决此问题
在专用的ASP.Net论坛
http://forums.asp.net
用于更高效的响应,您可以联系ASP.NET专家。
此外,有一个类似于您的主题,请参阅 http:// stackoverflow.com/questions/32305511/while-working-on-iis-system-diagnostic-trace-correlationmanager-activityid-is-ge
解决方案是 启用请求iis上的跟踪模块。请试一试。
祝你好运,
Kristin
Hello Team,
We are using 'Microsoft.Practices.EnterpriseLibrary.Logging' for logging in our MVC application. If there are any errors, we are planning to give the user 'System.Diagnostic.Trace.CorrelationManager.ActivityId' so that the user can check logs for the error. This works well when we run the application locally on IIS express but when we deploy it to the server, ActivityId is always empty.
Can you help us solve this issue?
Thanks,
Sujitha.
Hi Sujitha.
Based on your description, your case more related to Asp.Net, I would suggest you reprost this issue in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts.
In addition, there is a thread like yours, please refer to http://stackoverflow.com/questions/32305511/while-working-on-iis-system-diagnostic-trace-correlationmanager-activityid-is-ge
The solutiion is enable request tracing module on iis. Please also have a try.
Best regards,
Kristin
这篇关于System.Diagnostic.Trace.CorrelationManager.ActivityId始终是服务器上的Guid.Empty的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!