Skip to content

Commit

Permalink
Custom errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cwetanow committed May 4, 2017
1 parent a7fbafa commit c356329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Logs.Web/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
<customErrors mode="Off" defaultRedirect="~/Error" redirectMode="ResponseRedirect">
<customErrors mode="On" defaultRedirect="~/Error" redirectMode="ResponseRedirect">
<error redirect="~/Error/NotFound" statusCode="404" />
<error redirect="~/Error/ServerError" statusCode="500" />
</customErrors>
Expand All @@ -40,12 +40,12 @@
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<!--<httpErrors errorMode="Custom" existingResponse="Replace">
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" />
<error statusCode="404" responseMode="ExecuteURL" path="/Error/NotFound" />
<remove statusCode="500" />
<error statusCode="500" responseMode="ExecuteURL" path="/Error/ServerError" />
</httpErrors>-->
</httpErrors>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Expand Down

0 comments on commit c356329

Please sign in to comment.