콘텐츠로 건너뛰기

Set max request size on asp.net

.Net

IIS 7+ 에서 운영되는 ASP.NET 웹 응용프로그램의 web.config 에 아래와 같이 설정합니다.

<system.web>
    <httpRuntime maxRequestLength="153600" executionTimeout="900" />
</system.web>

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

system.web > httpRuntime 의 maxRequestLength 는 ASP.NET 웹 응용프로그램이 허용하는 파일의 크기를 설정합니다. (단위는 KB Kilobyte 입니다.)

system.webServer > security > requestFiltering > requestLimits 의 maxAllowedContentLength 는 IIS 가 허용하는 요청 Request 의 길이를 설정합니다. (단위는 Byte 입니다.)

댓글 남기기응답 취소

Exit mobile version