Skip to content

Commit

Permalink
Solve nice message for Razor and Compiled exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenbock committed Feb 3, 2017
1 parent 94bc505 commit 80de6d6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions AchmeErrorSite/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<meta charset="utf-8" />
</head>
<body>
<p>Error ocurred. Nice message here.</p>
</body>
</html>
1 change: 1 addition & 0 deletions AchmeErrorSite/AchmeErrorSite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="500.html" />
<Content Include="packages.config" />
<Content Include="config\imageprocessor\security.config" />
<Content Include="config\imageprocessor\processing.config" />
Expand Down
Binary file modified AchmeErrorSite/App_Data/Umbraco.sdf
Binary file not shown.
2 changes: 1 addition & 1 deletion AchmeErrorSite/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</system.net>

<system.web>
<customErrors mode="RemoteOnly" />
<customErrors mode="On" defaultRedirect="/500.html" redirectMode="ResponseRewrite" />
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" maxRequestLength="51200" fcnMode="Single" />
<!--
Expand Down

0 comments on commit 80de6d6

Please sign in to comment.