0
我有在我的web.config这个自定义错误配置自定义路线页面,但仍然是默认的"/common/ErrorPage.html?webconfig">
。这可能吗 ?在web.config中指定的错误
我有在我的web.config这个自定义错误配置自定义路线页面,但仍然是默认的"/common/ErrorPage.html?webconfig">
。这可能吗 ?在web.config中指定的错误
如果您的特殊页面可以在特定的ASP.NET MVC区域中,这样做的一种方法是使用不同的基于位置的自定义错误路径。 (从this)
<system.web>
<customErrors mode="On" defaultRedirect="error" />
</system.web>
.
.
.
<location path="areaName">
<system.web>
<customErrors mode="On" defaultRedirect="/areaName/error" />
</system.web>
</location>
谢谢,我尝试,但它似乎不工作 – EagerToLearn
,我对ASP.NET 2.0不MVC开发 – EagerToLearn