0

My API returns JSON content with some errors, such as 500 (Bad Request). Under IIS 6, this worked fine. In IIS 7, once I turn off detailed error messages it simply returns the text "Bad Request". How can I keep the contents of my response intact?

Keith Walton
  • 175
  • 1
  • 10
  • Have you found an answer to that question? I'm interested in it. Thank you. – Jean-Francois Feb 05 '13 at 21:25
  • @Jean-Francois I must have, because I don't have this problem anymore. I'm surprised I didn't come back here add an answer. I'll take a look and see if I can remember what I did. – Keith Walton Feb 06 '13 at 19:48

1 Answers1

1

You need to set the Error Responses to 'Detailed errors' in the Error Pages setting of IIS7. Open that, then click on 'Edit Feature Settings', you'll find it there.