Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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