ASP.NET MVC Error Handling - Remove aspxerrorpath

前端 未结 5 1454
别那么骄傲
别那么骄傲 2020-12-30 22:45

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... so

5条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 23:39

    Add redirectMode="ResponseRewrite" to the customErrors section. That worked for me.

提交回复
热议问题