아쉽게도 MVC 응용 프로그램에 있어서는 전문가는 아니지만 ASP.NET 환경 내에서 파일 업로드 제한을 늘려야 한다면 web.config 파일을 사용 하 여 기본 설정을 재정의 해야 한다는 것을 알 수 있습니다. 다음은 사용할 수 있는 샘플 코드입니다. IIS의 크기 제한에 큰 파일을 업로드 하려고 하면 다음과 같은 오류 메시지가 표시 됩니다. 요소는 웹 서버에서 처리 하는 HTTP 요청에 대 한 제한을 지정 합니다. 이러한 제한에는 요청의 최대 크기, 최대 URL 길이 및 쿼리 문자열의 최대 길이가 포함 됩니다. 또한 요소에는 http 헤더에 대 한 사용자 지정 설정을 정의할 수 있는 요소의 사용자 정의 http 헤더 제한 컬렉션이 포함 될 수 있습니다. 당신은 파일 업로드 한도를 높이기 위해 3 사용할 수 있는 옵션이 있습니다: Ops, 내가 여기 테스트, IIS는 당신이 4gb의 제한을 무시할 수 없습니다 … 나는 파일이 없 었 > 2 기가바이트 <4GB to test to obtaim from IIS 8.5 + ARR 3.5 @ IIS 8.5… If you want, i can try to find something to test. It says that .NET 4.0 and lower support only up to 2GB. .NET 4.5 support higher sizes…

Since IIS 7.5 cames with .NET 3.5 Native, seems razoable that it will have file size limit… But IIS 8.0+ cames with .NET 4.5 native, so i think that will bypass this size limit. Is there a GoDaddy server limitation that is limiting File Uploads to 30 MB? From IIS documentation, on IIS6 must set system.web/httpRuntime maxRequestLength, default is 4096 kilobytes (4 MB), MaxValue is 2147483647 KB (2 TB). On IIS7, must set system.webServer/security/requestFiltering/requestLimits maxAllowedContentLength, default is 30000000 bytes (28.6 MB), MaxValue is 4294967295 bytes (4 GB). When trying to upload files over 200KB on IIS 6, the file may never upload and you either get an error or are sent to a blank screen. By default, Windows 2003 Server limits file uploads to about 200KB in size. To overcome this limit, you must edit the IIS MetaBase.xml file. To increase the File Upload Size Limit, run the following command (will increase the limit to 10MB): http://stackoverflow.com/questions/16738849/exceeding-the-2gb-file-upload-limitation-in-iis-7-5-and-net .

Selected files will be attached to any email sent on saving ticket. When you create a site, you have to choose an application pool who will “run” the site. If you never configurated something like this, probably you will have an application pool for each site, matching it`s names. You can increase the maximum file size by modify the maxAllowedContentLength setting in the web.config file: . cscript C:inetpubadminscriptsadsutil.vbs set w3svc/ASPMaxRequestEntityAllowed 10484880 . . IIS don`t look at .NET versions, it looks for .NET famillies. So .NET 2.0, 3.0, 3.5 will be “.NET 2.0” and .NET 4.0, 4.5, 4.5.1, 4.5.2 will be “.NET 4.0”. Anytime I try to upload a file 30 MB or larger it fails. have the following attributes in my web.config: Specify your options, and then click OK.

For example, you could make the following changes: Thanks for your answer. I don`t know how insert the version of my framework in my web.config file of my website. I have also deployed the 4.5.1 framework on my server. Please find my web.config : Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. to=”” test=”” to=”” obtaim=”” from=”” iis=”” 8.5=”” +=”” arr=”” 3.5=”” @=”” iis=”” 8.5…=”” if=”” you=”” want,=”” i=”” can=”” try=”” to=”” find=”” something=”” to=”” test.=”” it=”” says=”” that=”” .net=”” 4.0=”” and=”” lower=”” support=”” only=”” up=”” to=”” 2gb.=”” .net=”” 4.5=”” support=”” higher=”” sizes…=”” since=”” iis=”” 7.5=”” cames=”” with=”” .net=”” 3.5=”” native,=”” seems=”” razoable=”” that=”” it=”” will=”” have=”” file=”” size=”” limit…=”” but=”” iis=”” 8.0+=”” cames=”” with=”” .net=”” 4.5=”” native,=”” so=”” i=”” think=”” that=”” will=”” bypass=”” this=”” size=”” limit.=”” is=”” there=”” a=”” godaddy=”” server=”” limitation=”” that=”” is=”” limiting=”” file=”” uploads=”” to=”” 30=”” mb?=”” from=”” iis=”” documentation,=”” on=”” iis6=”” must=”” set=”” system.web/httpruntime=”” maxrequestlength,=”” default=”” is=”” 4096=”” kilobytes=”” (4=”” mb),=”” maxvalue=”” is=”” 2147483647=”” kb=”” (2=”” tb).=”” on=”” iis7,=”” must=”” set=”” system.webserver/security/requestfiltering/requestlimits=”” maxallowedcontentlength,=”” default=”” is=”” 30000000=”” bytes=”” (28.6=”” mb),=”” maxvalue=”” is=”” 4294967295=”” bytes=”” (4=”” gb).=”” when=”” trying=”” to=”” upload=”” files=”” over=”” 200kb=”” on=”” iis=”” 6,=”” the=”” file=”” may=”” never=”” upload=”” and=”” you=”” either=”” get=”” an=”” error=”” or=”” are=”” sent=”” to=”” a=”” blank=”” screen.=”” by=”” default,=”” windows=”” 2003=”” server=”” limits=”” file=”” uploads=”” to=”” about=”” 200kb=”” in=”” size.=”” to=”” overcome=”” this=”” limit,=”” you=”” must=”” edit=”” the=”” iis=”” metabase.xml=”” file.=”” to=”” increase=”” the=”” file=”” upload=”” size=”” limit,=”” run=”” the=”” following=”” command=”” (will=”” increase=”” the=”” limit=”” to=”” 10mb):=”” http://stackoverflow.com/questions/16738849/exceeding-the-2gb-file-upload-limitation-in-iis-7-5-and-net=”” .=”” selected=”” files=”” will=”” be=”” attached=”” to=”” any=”” email=”” sent=”” on=”” saving=”” ticket.=”” when=”” you=”” create=”” a=”” site,=”” you=”” have=”” to=”” choose=”” an=”” application=”” pool=”” who=”” will=”” “run”=”” the=”” site.=”” if=”” you=”” never=”” configurated=”” something=”” like=”” this,=”” probably=”” you=”” will=”” have=”” an=”” application=”” pool=”” for=”” each=”” site,=”” matching=”” it`s=”” names.=”” you=”” can=”” increase=”” the=”” maximum=”” file=”” size=”” by=”” modify=”” the=”” maxallowedcontentlength=”” setting=”” in=”” the=”” web.config=”” file:=”” .=”” cscript=”” c:inetpubadminscriptsadsutil.vbs=”” set=”” w3svc/aspmaxrequestentityallowed=”” 10484880=”” .=”” .=”” iis=”” don`t=”” look=”” at=”” .net=”” versions,=”” it=”” looks=”” for=”” .net=”” famillies.=”” so=”” .net=”” 2.0,=”” 3.0,=”” 3.5=”” will=”” be=”” “.net=”” 2.0″=”” and=”” .net=”” 4.0,=”” 4.5,=”” 4.5.1,=”” 4.5.2=”” will=”” be=”” “.net=”” 4.0″.=”” anytime=”” i=”” try=”” to=”” upload=”” a=”” file=”” 30=”” mb=”” or=”” larger=”” it=”” fails.=”” have=”” the=”” following=”” attributes=”” in=”” my=”” web.config:=”” specify=”” your=”” options,=”” and=”” then=”” click=”” ok.=”” for=”” example,=”” you=”” could=”” make=”” the=”” following=”” changes:=”” thanks=”” for=”” your=”” answer.=”” i=”” don`t=”” know=”” how=”” insert=”” the=”” version=”” of=”” my=”” framework=”” in=”” my=”” web.config=”” file=”” of=”” my=”” website.=”” i=”” have=”” also=”” deployed=”” the=”” 4.5.1=”” framework=”” on=”” my=”” server.=”” please=”” find=”” my=”” web.config=”” :=”” description:=”” an=”” unhandled=”” exception=”” occurred=”” during=”” the=”” execution=”” of=”” the=”” current=”” web=”” request.=”” please=”” review=”” the=”” stack=”” trace=”” for=”” more=”” information=”” about=”” the=”” error=”” and=”” where=”” it=”” originated=”” in=”” the=”” code.=””></4GB to test to obtaim from IIS 8.5 + ARR 3.5 @ IIS 8.5… If you want, i can try to find something to test. It says that .NET 4.0 and lower support only up to 2GB. .NET 4.5 support higher sizes… Since IIS 7.5 cames with .NET 3.5 Native, seems razoable that it will have file size limit… But IIS 8.0+ cames with .NET 4.5 native, so i think that will bypass this size limit.

Is there a GoDaddy server limitation that is limiting File Uploads to 30 MB? From IIS documentation, on IIS6 must set system.web/httpRuntime maxRequestLength, default is 4096 kilobytes (4 MB), MaxValue is 2147483647 KB (2 TB). On IIS7, must set system.webServer/security/requestFiltering/requestLimits maxAllowedContentLength, default is 30000000 bytes (28.6 MB), MaxValue is 4294967295 bytes (4 GB). When trying to upload files over 200KB on IIS 6, the file may never upload and you either get an error or are sent to a blank screen. By default, Windows 2003 Server limits file uploads to about 200KB in size. To overcome this limit, you must edit the IIS MetaBase.xml file. To increase the File Upload Size Limit, run the following command (will increase the limit to 10MB): http://stackoverflow.com/questions/16738849/exceeding-the-2gb-file-upload-limitation-in-iis-7-5-and-net . Selected files will be attached to any email sent on saving ticket. When you create a site, you have to choose an application pool who will “run” the site. If you never configurated something like this, probably you will have an application pool for each site, matching it`s names. You can increase the maximum file size by modify the maxAllowedContentLength setting in the web.config file: . cscript C:inetpubadminscriptsadsutil.vbs set w3svc/ASPMaxRequestEntityAllowed 10484880 .

. IIS don`t look at .NET versions, it looks for .NET famillies. So .NET 2.0, 3.0, 3.5 will be “.NET 2.0” and .NET 4.0, 4.5, 4.5.1, 4.5.2 will be “.NET 4.0”. Anytime I try to upload a file 30 MB or larger it fails. have the following attributes in my web.config: Specify your options, and then click OK. For example, you could make the following changes: Thanks for your answer. I don`t know how insert the version of my framework in my web.config file of my website. I have also deployed the 4.5.1 framework on my server.

Please find my web.config : Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. >