ASP.NET MVC Tracing Issues

后端 未结 5 789
暖寄归人
暖寄归人 2021-02-05 08:20

Question

How do I get ASP.NET MVC trace information to be consistent for in-page trace output as trace.axd? I may just be missing something obvious, please call it out

5条回答
  •  生来不讨喜
    2021-02-05 08:55

    Instead of using the HttpContext.Current.Trace or the System.Diagnostics.Trace, try using the Controller.HttpContext.Trace ?

提交回复
热议问题