Skip to content

Commit 6f7d323

Browse files
committed
Custom error mode
* Disabling custom errors for Debug version
1 parent af1dee3 commit 6f7d323

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Web/Web.Debug.config

+1-11
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
</connectionStrings>
1616
-->
1717
<system.web>
18-
<!--
19-
In the example below, the "Replace" transform will replace the entire
20-
<customErrors> section of your Web.config file.
21-
Note that because there is only one customErrors section under the
22-
<system.web> node, there is no need to use the "xdt:Locator" attribute.
23-
24-
<customErrors defaultRedirect="GenericError.htm"
25-
mode="RemoteOnly" xdt:Transform="Replace">
26-
<error statusCode="500" redirect="InternalError.htm"/>
27-
</customErrors>
28-
-->
18+
<customErrors mode="Off" xdt:Transform="Replace" />
2919
</system.web>
3020
</configuration>

Web/Web.config

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
</providers>
6161
</sessionState>
6262
<compilation debug="true" targetFramework="4.0" />
63+
64+
<customErrors mode="RemoteOnly" />
6365
</system.web>
6466
<system.webServer>
6567
<validation validateIntegratedModeConfiguration="false" />

0 commit comments

Comments
 (0)