Microsoft MVP성태의 닷넷 이야기
web config 파일 확인부탁드려요 [링크 복사], [링크+제목 복사],
조회: 8954
글쓴 사람
홈페이지
첨부 파일
 

아래 질문 한 사람입니다.
web.config 파일을 첨부된 것 처럼 수정했는데,
다시 동일한 오류가 나네요.


</configuration>
<configuration>
    <system.web>
        <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
    </system.web>
</configuration>
<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="104857600" />
      </requestFiltering>
   </security>
 </system.webServer>


혹시 뭐가 잘못되었을까요?








[최초 등록일: ]
[최종 수정일: 3/31/2023]


비밀번호

댓글 작성자
 



2023-03-31 03시12분
configuration 내에 system.webServer 설정이 들어가야 합니다. 따라서 다음과 같은 식으로 설정해 보세요.

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
    </system.web>
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="104857600" />
            </requestFiltering>
        </security>
    </system.webServer>
</configuration>
정성태
2023-03-31 03시48분
[갱] 감사합니다.
주신 파일로 그대로 복사해서 넣었는데, 에러가 아직도 나네요.
파일 업로드가 가능하면 config파일을 드려서 전체를 보실수도 있을텐데, 3일째 이러고 있습니다.
왜그럴까요... ㅠㅠ
[guest]
2023-03-31 03시55분
오류 메시지가 "request entity too large"라고 난다는 건가요?

일단, 현재 사용하고 있는 환경으로 재현이 되는 예제 프로젝트를 첨부해주세요.
정성태
2023-03-31 05시43분
[갱] 네.

1. https://trips.ucc.ie/uploads 웹사이트에서 파일(약 2.8기가 파일, sqlite 파일 업로드)
2. 웹사이트에서 업로드 누르고, 약 1분 정도 후 413 에러 나옴
[guest]
2023-03-31 05시46분
[갱] 정확한 에러명은
Request Entity Too Large
The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
입니다
[guest]
2023-03-31 07시47분
그런데, 그 사이트가 닷넷으로 만든 거 맞나요?

curl로 확인해 보면,

c:\temp> curl -I https://trips.ucc.ie/uploads/
HTTP/1.1 200 OK
Date: Fri, 31 Mar 2023 10:46:19 GMT
Server: Apache/2.4.54 (Ubuntu) OpenSSL/1.1.1 mod_wsgi/4.5.17 Python/3.6
Content-Length: 24228
Vary: Cookie,Accept-Encoding
Set-Cookie: session=eyJ...[생략]...Bi7pX4; Expires=Mon, 01 May 2023 10:46:19 GMT; Path=/
Content-Type: text/html; charset=utf-8

Server 헤더가 Python이 나오는데요, 아무래도 번지수를 잘못 찾으신 것 같습니다. 관련해서는 파이썬 게시판에 문의하세요.
정성태

1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
5881guest4/6/20239138static method - <에러메시지 Extension method must be defined in a non-generic static class> [4]
5880유비4/4/20238864WPF DataGrid CollectionView, IEditableCollectionView 관련 문의 [1]
5879guest4/4/20239130Async method의 에러 표시 [3]
5878guest4/3/20239780C#으로 CMOS 설정 변경가능한지요? [4]
5875guest4/2/202310293성태님 책을 완독 하고 Static [7]
5874민성4/1/20239577안녕하세요 질문 하나만 드릴깨요~ [1]
5873guest3/31/20239627제어판에서 삭제불가 MS Edge ---> 레지스트리 편집기에서도 안보임 [6]파일 다운로드1
58723/31/20238954web config 파일 확인부탁드려요 [6]
58713/31/20238941web config 파일 수정이요 [2]파일 다운로드1
5870guest3/30/20239242.NET Core SDK 삭제 시 주의 사항 [4]파일 다운로드1
5869guest3/30/20239567Dictionary의 Update 그리고 Foreach [7]
5868guest3/29/20239273Speech Recognition과 Form1 그리고 정확도 [4]파일 다운로드1
5866월급쟁이3/28/20239004cmake 크로스 컴파일 관련하여 질문이 있습니다 [1]
5865guest3/28/20238660Github Copilot과 코딩실력 향상? [1]
5864guest3/27/20239362System.NullReferenceException - 개체참조가 개체의 인스턴스... [6]파일 다운로드1
5863guest3/24/20239266이벤트 핸들러 사라짐 현상 - Button [4]
5862guest3/21/20239531세계최초 hts와 싱글스레드 [8]
5861다크파이썬3/21/202310308WPF를 사용하려고 하려고 도서 문의합니다. [2]
5860guest3/21/20238867인텔코어 i5 CPU와 스레드 [4]
5859guest3/21/20238407개발 일지 어떻게 관리하시나요? 이런 프로그램 없나요? [3]
5858김태원3/18/20238830안녕하세요! [5]
5857guest3/17/20238709귀도 반 로썸을 보고 [4]
5856guest3/17/20238475Form1_FormClosing에 closing time을 Sqlite 저장하는 법? [6]파일 다운로드1
5855욜로3/17/20237746C# 메타데이터에서 불러오는 참조 정의가 안됨 [1]
5854민성3/16/20238222안녕하세요 asp.net mvc using문 관련하여 [1]
5853pa3/16/20238001오피스 2016 업데이트 후 파일 출력 불가 [1]
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...