ÔÚʵ¼ÊÓ¦ÓÃÖÐÍùÍù»á³öÏÖÉÏ´«ÎļþÌ«´ó
£¬ÎÞ·¨ÉÏ´«µÄÇé¿ö
£¬ÄÇÊÇÒòΪIIS¶ÔÉÏ´«Îļþ´óСÓÐÏÞÖÆ£¬IIS7 ĬÈÏÎļþÉÏ´«´óСÊÇ30M£¬ÒªÍ»ÆÆÕâ¸öÏÞÖÆÐèÒª×öÒ»ÏÂÐ޸ģº
1.´ò¿ª %windir%\system32\inetsrv\config\applicationhost.config ÕÒµ½£º <requestFiltering>½Úµã
Õâ¸ö½ÚµãĬÈÏûÓÐ <requestLimits maxAllowedContentLength="ÉÏ´«´óСµÄÖµ(µ¥Î»£ºbyte)" /> ÔªËØ£¬IIS 7ºÍIIS 7.5ÉϲâÊÔ¹ý ×î´óÖµÖ»ÄÜÊÇ<requestLimits maxAllowedContentLength="4294967295" /> <4GB,
ΪÕâ¸ö½ÚµãÐÂÔöÈçÏÂÊÂÀýÔªËØ£º<requestLimits maxAllowedContentLength="2147483647" /> £¬ÉÏ´«µÄ´óС½«¸ÄΪ2G
×¢Ò⣺%windir%\system32\inetsrv\config\applicationhost.config ÎļþÒ»¶¨²»ÒªÓÃÆäËû»úÆ÷µÄÎļþÌæ»»£¬·ñÔòIIS½«ÎÞ·¨Æô¶¯ ´ËÎļþ¼Ç¼ÁË£¬µ±Ç°IISÖÐËùÓÐSite , App poolµÄÐÅÏ¢£¬»¹ÓÐһЩÓë»úÆ÷Ïà¹ØµÄÅäÖÃ
¡£
2.ÐÞ¸Äweb.config
<system.web>
<httpRuntime executionTimeout="36000" maxRequestLength="2097151"/>
<!--maxRequestLength£ºÉÏ´«µÄ´óÐ
¡£¬µ¥Î»K ,executionTimeout£ºÉèÖó¬Ê±Ê±¼ä£¬µ¥Î»£ºÃë¡££¨Ä¬ÈÏÊÇ90Ã룩 -->
</system.web>
3.web.configÏÂÈç¹ûÓÐÈçϽڵã(´Ë½ÚµãÊÇΪIIS 7Éè¼ÆµÄ) £¬ÔòÐ޸ģº
<requestLimits maxAllowedContentLength="2147483647" /> µ¥Î»Óëapplicationhost.configÖеÄ<requestLimits maxAllowedContentLength="2147483647" />Ò»ÖÂ,ËüµÄ×î´óÖµÒ²Ö»ÄÜΪ4294967295<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>