Show Detailed ASP.NET Error Messages to Developers (and only to Developers) RRS feed

  • Question

  • Problem: You are developing/maintaining an ASP.NET web-site, and would like the ability to conditionally show/hide runtime error messages depending on who the user visiting the site is.

    For a normal user visiting the site you want to be able to display a friendly error message when a runtime error occurs. But when someone within the “developers” security role of your application remotely accesses the site you want to instead show a more detailed exception stack trace error message about the problem without having to change any configuration data.
    Please explain me how to use ASP.NET’s role-based security architecture in conjunction with the Global.asax Application_Error event handler to enable this.

    Harsh Raj,

    Tuesday, February 11, 2014 7:18 AM


  • Hi,

    This forum is used to discuss the question about the Windows Communication Foundation, Serialization, and Networking, and your question is related to the So it will be better for you to post your question to the forums, then you will get a good reply from the experts.

    #ASP.NET Forums: .

    Thanks for your understanding.

    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, February 12, 2014 3:18 AM