IIS 업로드 용량 오류 발생시 (404.10)
출처: http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_22943810.html
IIS7에서, 서버에 보낼 수 있는 용량은 약 29메가.이를 수정하는 방법은 IIS 에서 설정 또는 asp.net 의 web.config 를 수정하여 해결.
다음은 /web.config 를 수정하여 해결하는 방법
해결방법 :
설정에서 수치를 더 늘이면 됨.
I am using IIS 7 on a Windows Vista machine. I'm uploading using the ASP File Upload control, and I'm saving the file using the FileUpload.SaveAs(filename as string) function. It works beautifully for files smaller than 15-20MB.
비스타에서 IIS 7 을 씀. (주: Windows 2008 도 IIS7) asp.net 에서 업로드 메서드를 사용할 때 15~20MB 정도면 이뿌게 잘 작동함.
I've tried changing several things in my web.config and in my applicationHost.config file, but nothing has allowed me to upload anything larger than about 20MB.
다음처럼 수정했을 때 20MB 메가 이상이면 잘 안되는데.. 무슨일?
Here are the applicable lines from my web.config...
===========================================
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
...
<system.web>
<httpRuntime executionTimeout="100000" maxRequestLength="2097151" />
...
</system.web>
...
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2097151" />
byte 단위. 약 2메가 허용했으니 안되지.. ㅡ.ㅡ
"1024x1024x허용할_메가바이트_용량수치" 로 바꿔주면 끝.
</requestFiltering>
</security>
</system.webServer>
</configuration>
===========================================
다음은 별 의미 없음.
And here are the lines from my applicationHost.config...
===========================================
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
...
<sectionGroup name="system.webServer">
...
<sectionGroup name="security">
...
<section name="requestFiltering" overrideModeDefault="Allow" />
...
</sectionGroup>
...
===========================================
Thanks for any help you can give me. Please let me know if you need any more details.
Thanks!
도와주면 감사!
결론 - 공식 문서 읽기를 밥먹듯 하자.