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'?> <configuration> <system.web> <customErrors mode='Off'/> </system.web> </configuration>
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 ?!
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>:This seems to override any other customError settings that you have specified in a web.config file, so setting the above entry to:
now means that I can once again see the detailed error messages that I need to.
The
machine.configis located at32-bit
64-bit