Wednesday, 9 October 2013

404 error file not found and directory HttpError throw handle

  <httpErrors existingResponse="Replace" errorMode="Custom">

      <remove statusCode="404" subStatusCode="-1" />
      <!--<error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="/errorp.aspx" responseMode="Redirect" />-->
      <error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="/errorpage.aspx" responseMode="ExecuteURL" />
      <error statusCode="400" path="/" responseMode="ExecuteURL" />

    </httpErrors>

  </system.webServer>

No comments:

Post a Comment