parent
1483be911c
commit
4988eb2d99
|
@ -16,17 +16,9 @@
|
||||||
-->
|
-->
|
||||||
<system.web>
|
<system.web>
|
||||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||||
<!--
|
<httpModules>
|
||||||
In the example below, the "Replace" transform will replace the entire
|
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule, Microsoft.ApplicationInsights.Extensibility.Web" xdt:Transform="Insert"/>
|
||||||
<customErrors> section of your Web.config file.
|
</httpModules>
|
||||||
Note that because there is only one customErrors section under the
|
|
||||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
|
||||||
|
|
||||||
<customErrors defaultRedirect="GenericError.htm"
|
|
||||||
mode="RemoteOnly" xdt:Transform="Replace">
|
|
||||||
<error statusCode="500" redirect="InternalError.htm"/>
|
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
</system.web>
|
</system.web>
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
<modules>
|
<modules>
|
||||||
|
|
27
Web.config
27
Web.config
|
@ -40,9 +40,20 @@
|
||||||
</providers>
|
</providers>
|
||||||
</roleManager>
|
</roleManager>
|
||||||
<httpModules>
|
<httpModules>
|
||||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule, Microsoft.ApplicationInsights.Extensibility.Web"/>
|
|
||||||
</httpModules>
|
</httpModules>
|
||||||
</system.web>
|
</system.web>
|
||||||
|
<system.webServer>
|
||||||
|
<modules>
|
||||||
|
</modules>
|
||||||
|
<urlCompression doDynamicCompression="true"/>
|
||||||
|
<validation validateIntegratedModeConfiguration="false"/>
|
||||||
|
<handlers>
|
||||||
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
|
||||||
|
<remove name="OPTIONSVerbHandler"/>
|
||||||
|
<remove name="TRACEVerbHandler"/>
|
||||||
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
|
||||||
|
</handlers>
|
||||||
|
</system.webServer>
|
||||||
<system.net>
|
<system.net>
|
||||||
<mailSettings>
|
<mailSettings>
|
||||||
<smtp configSource="smtp.config"/>
|
<smtp configSource="smtp.config"/>
|
||||||
|
@ -88,18 +99,4 @@
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
<system.webServer>
|
|
||||||
<modules>
|
|
||||||
<remove name="ApplicationInsightsWebTracking"/>
|
|
||||||
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule, Microsoft.ApplicationInsights.Extensibility.Web" preCondition="managedHandler"/>
|
|
||||||
</modules>
|
|
||||||
<urlCompression doDynamicCompression="true"/>
|
|
||||||
<validation validateIntegratedModeConfiguration="false"/>
|
|
||||||
<handlers>
|
|
||||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
|
|
||||||
<remove name="OPTIONSVerbHandler"/>
|
|
||||||
<remove name="TRACEVerbHandler"/>
|
|
||||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
|
|
||||||
</handlers>
|
|
||||||
</system.webServer>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue