ASP.NET MVC错误处理 - 删除aspxerrorpath
问题描述:
我工作的一些错误在我的MVC应用程序处理,我想改变 asperrorpath
来的东西,不放弃的事实,我'中号使用.NET ...类似路径
I'm working on some error handling in my MVC app, and I'd like to change asperrorpath
to something that doesn't give away the fact that I'm using .NET... something like path
谁能给我如何改变一些方向?
Can anyone give me some direction on how to change that out?
答
添加 redirectMode =ResponseRewrite
到的customErrors部分。这为我工作。
Add redirectMode="ResponseRewrite"
to the customErrors section. That worked for me.