
在 Win2008(iis 7.0)和Win2003(iis 6.0) 中,默认设置是特别严格和安全的,这样可以最大限度地减少因以前太宽松的超时和限制而造成的攻击。
指定 ASP 请求的实体主体中允许大小为 200,000 (IIS6为204,800) 个字节,在 iis 6.0 之前的版本中,没有限制。
这就造成了文件上传不能超过200k,而事实上是提交数据不能超过200k,你可以发一个很长的帖子试试,也会出现这个错误。
IIS7.0(windows 2008 win7)的修改方法如下:
打开IIS管理器--双击“IIS”中的“ASP”-- 打开“配置 ASP 应该程序的属性”--展开“限制属性”;
修改“最大请求实体主体限制”的值,默认值为200000(即不到200KB);
把它修改为你想修改的大小,如:52000000(50MB)。
修改完成点击“应用”OK!
IIS6.0(windows 2003 xp)的修改方法如下:
在服务里关闭iis admin service服务
找到windowssystem32inetsrv下的MetaBase.xml,
打开,找到AspMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200k
把它修改为51200000(50MB)
然后重启iis admin service服务
在 IIS 6.0 中,无法下载超过4M的附件时,可以按以下步骤解决:
1、先在服务里关闭 iis admin service 服务。
2、找到 windowssystem32inetsrv 下的 metabase.xml 文件。
3、用纯文本方式打开,找到 AspBufferingLimit 把它修改为需要的值,默认为4194304(可修改为20M即:20480000)。
4、存盘,然后重启 iis admin service 服务。
Disclaimer: The content on this page is collected and edited by Jinghuang Network for reference only. We do not claim ownership or bear legal responsibility for external materials. If you find any copyright infringement, please contact us with proof, and we will remove the content within 5 working days. For more insights on Global Web Optimization and Global Web Development, please visit our official site (www.0731jianzhan.com).
24/7 Support
Global hotline anytime
50x Compensation
For service downtime
7-Day Refunds
On eligible products
Pro Teams
Global branch service
10+ Yrs History
Global Branches
Senior Devs
10K+ Clients
Partner
Grow and win together
Build marketing ecosystems
Connect
Seamless user bridges
Future
Shared platform dev
0731-82272030
Address: Room 1202, North Bldg, Xingwei Mingzuo, Yuhua Dist, Changsha
Jinghuang Network specializes in corporate sites, e-commerce, apps, and full-stack systems.
We provide stable, high-performance platforms with full tech support and maintenance.
WeChat Official