How to enable detailed error information for IIS and ASP.NET

By default, IIS and ASP.NET hide detailed error information to prevent revealing sensitive information about your web application:
IIS generic error

ASP.NET generic error

Sometimes you need to see error details (think shared hosting). Add these entries to your web.config file to disable generic errors:

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

  <system.webServer>
    <httpErrors errorMode="Detailed" />
  </system.webServer>
</configuration>

Resources

One thought on “How to enable detailed error information for IIS and ASP.NET

  1. ???????? ?????? ?? 100.30.15 — ??? ???????????????? ??????? ????????? ?????????????, ??????? ???????????? ??? ????????? ???????? ????? ?? ?????????, ??????? ? ?????? ??? ???????????????. ?? ??????????????? ?? ???????? ??????, ?????????? ??????? ????????????? ? ????????? ? ???????? ????????, ??????? ?????? ??????????? ??? ???????????? ?????, ???????? ? ????????? ??????????. ?????????? ??? ??????? ??????? ??????

Leave a Reply

Your email address will not be published. Required fields are marked *