0

I added the following to all the web.configs in my app. But I still can't see the errors remotely. How could this be?

 <configuration>
 <system.web>
  <customErrors mode="Off"/>
</system.web>
</configuration>
chriga
  • 778
  • 2
  • 13
  • 29

1 Answers1

0

the reason is, you need to set debug to true:

<configuration>
    <system.web>
        <compilation debug="true" />
        <customErrors mode="Off"/>
    </system.web>
</configuration>

customErrors mode is meant for debugging purposes and won't work once deployed to the server unless you set compilation debug="true".

Barr J
  • 10,104
  • 1
  • 27
  • 44