Asp.net mvc 3 无法设置<;customErrors模式=";关「&燃气轮机;对于mvc3.net web应用程序

Asp.net mvc 3 无法设置<;customErrors模式=";关「&燃气轮机;对于mvc3.net web应用程序,asp.net-mvc-3,iis-7,web-config,Asp.net Mvc 3,Iis 7,Web Config,我需要为我的MVC 3 web应用程序在IIS 7.5中的web.config中设置CustomErrors on OFF 使用此代码,CustomError仍处于默认模式 你能告诉我这里出了什么问题吗?坦斯克 <system.web> <customErrors mode="off"> </customErrors> ... ... 编辑解决方案(区分大小写问题) ... customErrors区分大小写 <system.web&g

我需要为我的MVC 3 web应用程序在IIS 7.5中的web.config中设置CustomErrors on OFF

使用此代码,CustomError仍处于默认模式

你能告诉我这里出了什么问题吗?坦斯克

 <system.web>
    <customErrors mode="off">
</customErrors>
...

...
编辑解决方案(区分大小写问题)


...

customErrors区分大小写

<system.web>
    <customErrors mode="Off">
    </customErrors>
...
</system.web>

...

确保您正在修改根级别的web.config谢谢,是的,我正在修改根级别的web.config可能是machine.config有问题?我相信它区分大小写。。。试试“关”你是对的,它区分大小写。如果你愿意写以前的答案,我很乐意接受:-)谢谢
<system.web>
    <customErrors mode="Off">
    </customErrors>
...
</system.web>