CustomErrors mode=”Off”

I get an error everytime I upload my webapp to the provider. Because of the customErrors mode, all I see is the default "Runtime error" message, instructing me to turn off customErrors to view more about the error.

Exasperated, I've set my web.config to look like this:

<?xml version="1.0"?>
        <customErrors mode="Off"/>

And still, all I get is the stupid remote errors page with no useful info on it.
What else can I do to turn customErrors OFF ?!

Best Solution

This has been driving me insane for the past few days and couldn't get around it but have finally figured it out:

In my machine.config file I had an entry under <system.web>:

<deployment retail="true" />

This seems to override any other customError settings that you have specified in a web.config file, so setting the above entry to:

<deployment retail="false" />

now means that I can once again see the detailed error messages that I need to.

The machine.config is located at





Hope that helps someone out there and saves a few hours of hair-pulling.