Default Limits <limits> for IIS Express

I need to test a file upload component that will accept very large files. I want to test locally in my development environment, but since I use IIS Express instead of IIS 7, I am not sure where to make a global change.

In IIS 7, a change cannot be made using web.config, but it must be changed using the IIS Manager tool. See this IIS article for an example.

Does anyone know how to make the same global change using IIS Express (in Visual Studio 2013)?

+4
source share
3 answers

web.config, ppascualv , IIS Express applicationhost.config,

%userprofile%\my documents\iisexpress\config\applicationhost.config

<system.webServer>

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="524288000"/>
    </requestFiltering>
</security>

, web.config .

+4

web.config maxRequestLength, maxAllowedContentLength .

  • maxRequestLength , ASP.NET
  • maxAllowedContentLength , IIS.

: maxRequestLength , maxAllowedContentLength

Machine.config HTTP 4096 (4 ) ASP.NET. Machine.config, Web.config (),

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>

 <system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>
 </system.webServer>
+3

You can use this in web.config

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>
+2
source

All Articles