[Asp.net]Uploadify上传大文件,Http error 500 解决方案

/// 原来这个项目中用了这个控件 所以config设置文件大小没有 现在可以了
<location path="MailWrite.aspx" >
<!--上传文件的页面路径-->
<system.web>
<neatUpload useHttpModule="true" />
<!--为true则代表使用neatUploadhttpModulefalse为不使用-->
<httpRuntime maxRequestLength="40960" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
<!--允许最大为40M-->
</system.web>
</location>

 1 <configuration>
 2   <system.web>
 3     <compilation debug="true" targetFramework="4.5" />
 4     <!--maxRequestLength就是文件的最大字符数,最大值不能超过2个G左右,executionTimeout是超时时间-->
 5     <httpRuntime targetFramework="4.5" maxRequestLength="1073741824" executionTimeout="3600" />
 6   </system.web>
 7   <system.webServer>
 8     <security>
 9       <requestFiltering>
10         <!--修改服务器允许最大长度-->
11         <requestLimits maxAllowedContentLength="1073741824"/>
12       </requestFiltering>
13     </security>
14   </system.webServer>
15 </configuration>


 
原文地址:https://www.cnblogs.com/yechangzhong-826217795/p/5980274.html