I have a strange problem with ASP.NET MVC web application. IIS 7.5 throws back error 401 instead of 500 when application error occurs. This happens in production environment only, dev or staging works fine; the difficulty here is that I don't have access to the production environment so I have to replicate issue on my own to see what is wrong.

Any suggestions?


401 means that Authorisation is required.. Do you use custom error pages? and if so does your application have access to the custom error pages? that would be my first guess.

  • Yes, I do have custom error pages, but for some reason they are ignored by IIS. I will try look into that. Thanks for a clue! – 303 Oct 3 '12 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.