ASP.Net ÎļþÉÏ´«´óСÏÞÖƽâ¾ö·½°¸ÐÞ¸ÄIIS7/7.5ÅäÖÃ
IIS 7 ĬÈÏÎļþÉÏ´«´óСʱ30M
ҪͻÆÆÕâ¸öÏÞÖÆ£º
1. ÐÞ¸ÄIISµÄapplicationhost.config
´ò¿ª %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>
×¢Ò⣺Õâ¸ömaxRequestLength×î´óÖµÖ»ÄÜÊÇ2097151K,ÉèÖôóÓÚÕâ¸öÖµ½«»á³öÏÖÈçÏ´íÎó:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The value for the property 'maxRequestLength' is not valid. The error is: The value must be inside the range 0-2097151.
Source Error:
<httpHandlers />
<customErrors mode="RemoteOnly" />
<httpRuntime executionTimeout="36000" maxRequestLength="4194304" />
<authentication mode="Windows" />
<identity impersonate="true" />
3. web.configÏÂÈç¹ûÓÐÈçϽڵã(´Ë½ÚµãÊÇΪIIS 7Éè¼ÆµÄ) £¬ÔòÐÞ¸Ä
<requestLimits maxAllowedContentLength="2147483647" /> µ¥Î»Óëapplicationhost.configÖеÄ<requestLimits maxAllowedContentLength="2147483647" /&
Ïà¹ØÎĵµ£º
1. INTRODUCTION
´óÁ¿µÄÍøÕ¾Ò³ÃæÊDzÉÓö¯Ì¬µÄ·½Ê½£¬¸ù¾ÝÓû§Ìá½»µÄ²»Í¬ÇëÇó´´½¨Éú³ÉÒ³Ãæ¡£ÕýÈçÎÒÃÇËùÖªµÄ£¬¶¯Ì¬Ò³ÃæÓÐÖúÓÚ¸ù
¾ÝÓû§ÒªÇóÀ´Ìṩ¶¨ÖƵĶ¯Ì¬ÄÚÈÝ¡£¶¯Ì¬Ò³ÃæÒ²ÀûÓÚ»ñÈ¡ÔÚÊý¾Ý¿âÖÐÿʱÿ¿Ì¸üеÄ×ÊÁÏ¡£È±µãÊÇΪÿ¸öÓû§ÇëÇóÉú³ÉͬһҳÃæÔö¼ÓÁËϵͳ¿ªÏú¡£
ASP.NET
ÌṩÁË»º´æ¼¼ÊõÓ ......
1.²ÉÓà HTTP Module ¿ØÖÆÒ³ÃæµÄÉúÃüÖÜÆÚ¡£
2.×Ô¶¨ÒåResponse.FilterµÃµ½Êä³öÁ÷streamÉú³É¶¯Ì¬Ò³ÃæµÄ¾²Ì¬ÄÚÈÝ(´ÅÅÌ»º´æ)¡£
3.Ò³ÃæGZIPѹËõ¡£
4.OutputCache ±à³Ì·½Ê½Êä³öÒ³Ã滺´æ¡£
5.ɾ³ýÒ³Ãæ¿Õ°××Ö·û´®¡££¨ÀàËÆGoogle£©
6.Íêȫɾ³ýViewState¡£
7.ɾ³ý·þÎñÆ÷¿Ø¼þÉú³ÉµÄÀ¬»øNamingContainer¡£
8.ʹÓüƻ®ÈÎÎñ°´Ê±Éú³É ......
´úÂëÈçÏ£º
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s = "Browser Capabilities\n"
"Type = " + browser.Type ;
"Name = " + browser.Browser ;
"Version = " + browser.Version ;
"Major Version = " + browser.Ma ......
ʹÓÃASP.NET 2.0 Profile´æ´¢Óû§ÐÅÏ¢[·Òë] Level 200
×÷Õß: Stephen Walther
ÔÎĵØÖ·£ºhttp://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnvs05/html/UserProfiles.asp
ÒëÕߣºTony Qu
¸ÅÒª£ºÐí¶àASP.NETÓ¦ÓóÌÐòÐèÒª¿ç·ÃÎʵÄÓû§ÊôÐÔ¸ú×Ù¹¦ÄÜ£¬ÔÚASP.NET1.1ÖУ¬ÎÒÃÇÖ»ÄÜÈ˹¤ÊµÏÖÕâÒ»¹¦ÄÜ¡£µ«Èç ......
ÎÒÃÇÔÚÊ״β¿ÊðmvcµÄÏîĿʱͨ³£»áÓöµ½Ò»µãÎÊÌâ¡£M$ÒѾÔÚGlobal.asax.csÎļþÖаüº¬ÁËÕâÁ½¾ä×¢Ê͵ÄÌáʾ¡£
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
µ«ÊÇÎÒÃÇ·ÃÎÊÕâ¸öÍøÖ·¿´µ½ÉÏÃæµÄÎÄÕ¶Ôiis5.1(win ......