We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: Custom error page for "Query timeout expired" errors?

    Apr 20, 2021 01:57 AM|samwu|LINK

    Hi Chenks76,

    Yes, the following configuration example demonstrates how to specify the error handling pages to use for an ASP.NET application.

    <configuration>
      <system.web>
      <customErrors defaultRedirect="GenericError.htm" mode="RemoteOnly">
        <error statusCode="404" redirect="InternalError.htm"/>
        </customErrors>
      </system.web>
    </configuration>

    More information you can refer to this link: customErrors Element.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >