张贴堆栈跟踪的ASP.NET MVC [英] Posting the Stack Trace on ASP.NET MVC
问题描述
在ASP.NET Web表单,我可以简单地通过声明&LT发布堆栈跟踪;
在我的的Web.config
。但是,这似乎并没有在ASP.NET MVC(3.0,目前)上班。
In ASP.NET web forms, I can post the stack trace simply by declaring <trace enabled="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).
有没有办法得到同样的结果,在跟踪的每一页上列出,在MVC?
Is there any way to get the same result, where the trace is listed on each page, in MVC?
推荐答案
的路上我一直做这个导航到 HTTP://本地主机:端口/ 的trace.axd您请求的页面后,
The way I have always done this is by navigating to http://localhost:port/trace.axd after you make the request to the page.
启用项需要跟踪是在web.config中(如你在你的问题有)。
The trace enabled entry needs to be in the web.config (as you have in your question).
这篇关于张贴堆栈跟踪的ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!