Schlagwort-Archive: web.config

Different error output between localhost and a remote host

In one of my ISAPI projects I set the HTTP status code to 400 or 500 in case of an error. I also add some more data (in the body) to give the user a better error message. On my development PC everything works fine. If I deploy the ISAPI I don’t get the additional body text. After a search on the web I found the solution:

Thank you guys.

After setting the httpError „existingResponse“ to „PassThrough“ in web.config it works.

<?xml version="1.0"?>
    <httpErrors existingResponse="PassThrough"></httpErrors>