How to implement proper HTTP error handling in .NET MVC 2?

后端 未结 4 604
一个人的身影
一个人的身影 2020-11-29 19:29

I\'ve been struggling all day to implement error handling in my ASP.NET MVC 2 app. I\'ve looked at a variety of techniques, but none work properly. I\'m using MVC2 and .NET

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 19:42

    For HTTP 404 errors (without redirects) take a look at my blog post on the subject. This might give you some good ideas:

    http://hectorcorrea.com/blog/returning-http-404-in-asp-net-mvc/16

提交回复
热议问题