Need some help with a custom ASP.NET MVC IExceptionFilter
问题 i'm trying to make my own ExceptionFilter. Out of the box, ASP.NET MVC comes with the [HandleError] attribute. This is great -> but it returns some html error View. As such, I'm wanting to return some json error message. So i'm making my own. Now, everything works great until i test my url. I keep getting an error. this is the message.... C:\Temp\curl-7.19.5>curl -i http://localhost:6969/search/foo?name=1234&key=test1xxx HTTP/1.1 401 Unauthorized Server: ASP.NET Development Server/9.0.0.0