King Kong King Kong - 2 years ago 94
ASP.NET (C#) Question

How to set web.config file to show full error message

I deployed my MVC-3 application on windowsazure. But now when i am requesting it through

staging url
it shows me (Sorry, an error occurred while processing your request.) . Now i want to see the full error message, by default it is hiding that because of some security reasons. I know that we can do this through web.config file. But how?

Answer Source

not sure if it'll work in your scenario, but try adding the following to your web.config under <system.web>:

    <customErrors mode="Off" />

works in my instance.

also see:

CustomErrors mode="Off"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download