开发者

Posting the Stack Trace on ASP.NET MVC

开发者 https://www.devze.com 2023-02-11 04:14 出处:网络
In ASP.NET web forms, I can post the stack trace simply by declaring <trace enabl开发者_如何学编程ed=\"true\" requestLimit=\"40\" localOnly=\"false\" pageOutput=\"true\" /> in my Web.config. But

In ASP.NET web forms, I can post the stack trace simply by declaring <trace enabl开发者_如何学编程ed="true" requestLimit="40" localOnly="false" pageOutput="true" /> in my Web.config. But this doesn't seem to work in ASP.NET MVC (3.0, currently).

Is there any way to get the same result, where the trace is listed on each page, in MVC?


The way I have always done this is by navigating to http://localhost:port/trace.axd after you make the request to the page.

The trace enabled entry needs to be in the web.config (as you have in your question).

0

精彩评论

暂无评论...
验证码 换一张
取 消