System.Diagnostic.Trace.CorrelationManager.ActivityId始终是服务器上的Guid.Empty [英] System.Diagnostic.Trace.CorrelationManager.ActivityId is always Guid.Empty on server

查看:114
本文介绍了System.Diagnostic.Trace.CorrelationManager.ActivityId始终是服务器上的Guid.Empty的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆