Posting the Stack Trace on ASP.NET MVC
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).
精彩评论