翱翔.Net

释放.Net的力量
posts - 74, comments - 1117, trackbacks - 4, articles - 17
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

'ASP 0104 : 80004005' Operation not Allowed Solution

Posted on 2004-10-22 09:15 Hover 阅读(2858) 评论(4)  编辑 收藏 网摘 所属分类: 杂七杂八

原文:http://www.dmxzone.com/ShowDetail.asp?NewsId=5424

Question:


--------------------------------------------------------------------------------
Request object error 'ASP 0104 : 80004005'
Operation not Allowed

Answer:


--------------------------------------------------------------------------------

Yes, Pure ASP Upload supports uploading large files on the Windows 2003 server. However:

IIS6.0 prevent the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.

Background
For IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response.

This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data.

Solution
Open your metabase.XML which is located in c:\Windows\System32\Inetsrv find the line "AspMaxRequestEntityAllowed" and change it to "1073741824". This is 1GB - of course you can enter another value to suite your needs.

NOTE: Before you edit the file, be sure to stop the IIS service first or else you won't be able to save the file.

 

Feedback

#1楼    回复  引用    

2005-08-06 13:07 by 小游戏 [未注册用户]
http://zhou6.comhttp://zhou6.com

#2楼    回复  引用    

2005-08-06 13:08 by 小游戏 [未注册用户]
http://zhou6.com

#3楼    回复  引用    

2006-05-28 11:19 by 看好123网址之家 [未注册用户]
欢迎大家访问.
http://kanhao123.com

#4楼    回复  引用    

2008-07-14 09:42 by luomin [未注册用户]
本机上可以上传,网上不能上传,网上的解决方法千篇一律都是这样讲,但是网站服务器的设置是人人都能去改的吗!就没有其他有效的方法吗!有的话请联系我,QQ:576329963,非常感谢!




标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索

China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!
开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》

相关文章:

相关链接: