0

We have an old app and no matter what we do, we can't seem to get it to stop emitting JSON error responses. We want just a generic message that won't expose important security details.

We've compiled for Release. I don't see any DeveloperExceptionPage calls. I didn't write this project so I have no idea how they got it to do that in the first place.

enter image description here

2

1 Answer 1

1

I had to turn on customErrors in my web.config. Annoying that it's not off by default.

<customErrors defaultRedirect="GenericError.htm" mode="RemoteOnly">
      <error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.