如何设置web.config文件中显示完整的错误消息 [英] How to set web.config file to show full error message
问题描述
我部署在windowsazure我MVC-3的应用程序。但现在,当我通过分期URL请求它
它为我的(对不起,在处理您的请求时出错。)。现在,我希望看到完整的错误消息,默认情况下它被隐藏,由于一些安全的原因。我知道,我们可以通过web.config文件做到这一点。但如何?
I deployed my MVC-3 application on windowsazure. But now when i am requesting it through staging url
it shows me (Sorry, an error occurred while processing your request.) . Now i want to see the full error message, by default it is hiding that because of some security reasons. I know that we can do this through web.config file. But how?
推荐答案
不知道它会在你的场景中工作,但尝试添加以下到你的的web.config
在<&的System.Web GT;
:
not sure if it'll work in your scenario, but try adding the following to your web.config
under <system.web>
:
<system.web>
<customErrors mode="Off" />
...
</system.web>
在我的实例的工作。
另见:
的customErrors模式=&QUOT;关闭&QUOT;
这篇关于如何设置web.config文件中显示完整的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!