惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - 老蒋

[转]silverlight打印慢的问题 Android模拟器访问google网站获取天气信息时,出现 java.net.UnknownHostException: www.google.com 错误 在Eclipse中运行Android程序报 Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 解决方法 在Eclipse中Override基类行为的便捷方式 20110515041233(yyyyMMddHHmmss)时间格式,转换成yyyy-MM-dd HH:mm:ss 未能从程序集 D:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Build.Tasks.dll 加载任务“Microsoft.Build.Tasks.Delete”。 - 老蒋 [javascript]解决IE7的window.close()弹出确认提示框(转) - 老蒋 - 博客园 【转】使用ASP.NET 2.0新增加的SetFocus和MaintainScrollPositionOnPostback增强用户体验 - 老蒋 - 博客园 清除数据库日志文件 (转)按字节长度截取字符串(支持截取带HTML代码样式的字符串) asp.net 导出Excel时,解决纯数字字符串变成类似这样的 2.00908E+18 形式的代码 - 老蒋 (实战)使用ExtJs+WCF打造分行信息管理功能的一些心得 此数据库没有有效所有者,因此无法安装数据库关系图支持对象。若要继续,请首先使用“数据库属性”对话框的“文件”页或 ALTER AUTHORIZATION 语句将数据库所有者设置为有效登录名,然后再添加数据库关系图支持对象。 IIS7.0 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法 江西人(一)---简介 使用C#打造自己的mp3播放器(基于Windows Media Player内核) 请教开发WinForm时输入法问题 WebPart使用问题 使用MD5加密注册用户密码的简单示例 - 老蒋 - 博客园
FileUpload控件IIS7上传限制设定方法 - 老蒋 - 博客园
老蒋 · 2009-02-02 · via 博客园 - 老蒋

文章来自互联网(截图为自己实验的):

昨天测试FileUpload控件.依托于IIS7上传大体积附件时失败.只要超过30M就不行了.但我在web.config中明明设置了

  <httpRuntime maxRequestLength="2097151" executi/>

为什么不起作用尼.根据IE提示错误信息:
打到%windir%\system32\inetsrv\config\applicationhost.config ,然后单击 打开 。
在该 ApplicationHost.config 文件中找到在 节点。
删除 maxAllowedContentLength 属性。 或者,添加一个值,使客户端发送作为请求的一部分的内容长度标头的大小相同。 默认情况下, maxAllowedContentLength 属性的值是 30000000.
帮助信息说到maxAllowedContentLength 的默认大不为30M.
这时明白web.config文件中设定的是针对某个WEB站点.而非全部站点的上传大小.在当applicationhost.config 中未对maxAllowedContentLength 设定大小时默认就是30M.在web.config中设定超过于30M.依然上传最大为30M.然页在applicationhost.config未找到节点.后面自己试着添加此节点.
在节点 内添加节点.

  <requestFiltering>
      <requestLimits maxAllowedContentLength="您要设定的上传值" />
      ..........
  </requestFiltering>

再次上传大附件.OK成功...

posted @ 2009-02-02 10:01  老蒋  阅读(1776)  评论()    收藏  举报