Ensures fcnMode and file size maximums are set for the debug web config transform and also for the nuget transform.

This commit is contained in:
Shannon
2016-01-13 17:27:56 +01:00
parent 5b9cbae860
commit 5aab50ba3b
3 changed files with 306 additions and 283 deletions

View File

@@ -89,7 +89,7 @@
</providers>
</membership>
<httpRuntime targetFramework="4.5" fcnMode="Single" xdt:Transform="SetAttributes(targetFramework,fcnMode)" />
<httpRuntime targetFramework="4.5" fcnMode="Single" maxRequestLength="1048576" xdt:Transform="SetAttributes(targetFramework,fcnMode,maxRequestLength)" />
<compilation debug="true" targetFramework="4.5" xdt:Transform="SetAttributes(debug,targetFramework)">
<assemblies xdt:Transform="Remove" />
@@ -116,6 +116,14 @@
<remove name="SpellChecker" xdt:Transform="Remove" xdt:Locator="Match(name)" />
<add name="SpellChecker" xdt:Transform="Remove" xdt:Locator="Match(name)" />
</handlers>
<!-- Increase the default upload file size limit -->
<security xdt:Transform="InsertIfMissing">
<requestFiltering xdt:Transform="InsertIfMissing">
<requestLimits maxAllowedContentLength="1073741824" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
</system.webServer>
<runtime>