IIS6ÉèÖãº
Ò»°ãͨ¹ýÔÚÅäÖÃÎļþÖмÓÈëÏÂÃæÕâ¾ä»°¼´¿É£º
<httpRuntime maxRequestLength="204800" />
ĬÈÏΪ200K£¬Äã¿É¸ù¾ÝÐèÒªÐ޸ġ£
Èô»¹ÊDz»Äܽâ¾ö¿Éͨ¹ýÒÔÏ·½·¨ÅäÖÃϵͳ£º
1.ÏÈ´ò¿ªInternet ÐÅÏ¢·þÎñ(IIS)¹ÜÀíÆ÷
(±¾µØ¼ÆËã»ú )---- ÊôÐÔ ----ÔÊÐíÖ±½Ó±à¼ÅäÖÃÊý¾Ý¿â(N)
Ò»¶¨Òª¹´ÏÈ“ÔÊÐíÖ±½Ó±à¼ÅäÖÃÊý¾Ý¿â(N)”
2.È»ºóÔÚ·þÎñÀï¹Ø±Õiis admin service·þÎñ£¬¿ÉÓÃÃüÁiisreset/stop
3.ÕÒµ½windows\system32\inesrv\ϵÄbase.xml,ÓüÆʱ¾´ò¿ªbase.xml£¬ÕÒµ½ASPMaxRequestEntityAllowed °ÑËûÐÞ¸ÄΪÐèÒªµÄÖµ£¬Ä¬ÈÏΪ204800£¬¼´200K£¬°ÑËüÐÞ¸ÄΪ51200000(50M)
4.Æô¶¯IIS£¬ÃüÁiisreset/start
IIS7.0ÉèÖãº
´ò¿ªIIS¹ÜÀíÆ÷–Ë«»÷“IIS”ÖеēASP”– ´ò¿ª“ÅäÖà ASP Ó¦¸Ã³ÌÐòµÄÊôÐÔ”–Õ¹¿ª“ÏÞÖÆÊôÐÔ”£»
Ð޸ē×î´óÇëÇóʵÌåÖ÷ÌåÏÞÖÆ”µÄÖµ£¬Ä¬ÈÏֵΪ200000£¨¼´²»µ½200KB£©£»
°ÑËüÐÞ¸ÄΪÄãÏëÐ޸ĵĴóС£¬È磺1024000000£¨1GB£©¡£
ÐÞ¸ÄÍê³Éµã»÷“Ó¦ÓÔ¼´¿É£¡
ÊÖ¹¤ÐÞ¸Äconfig·½·¨:
%windir%\System32\inetsrv\config\schema
ÓüÇʱ¾´ò¿ª IIS_schema.xml
²éÕÒ <attribute name="maxAllowedContentLength" type="uint" defaultValue="30000000" />
3000000ĬÈÏΪ30MB£¨²»ÍêÈ«µÈÓÚ£© ¡£¼ÓÒ»¸ö0 ¾ÍÊÇ 300MB ¡£¸ù¾ÝÐèÒª×Ô¼º½øÐÐÐ޸ģ¨1M=1024kB£©¡£ÖØÆôiis
×¢£ºÍ£Ö¹IIS·þÎñÃüÁîiisreset/stop Æô¶¯IISÃüÁîiisreset/start ÖØÆôIISÃüÁîiisreset.