IIS7 传大于30M的视频时,出现找不到文件或目录错误的解决办法
2013-05-15 17:09
639 查看
这个情况是出现在使用iis7的系统上的,因为iis7限制了上传文件大小,默认允许最大上传30M。
解决办法:
修改IIS_schema.xml这个文件要先获得这个文件的控制权;
进入目录C:\Windows\System32\inetsrv\config\schema,修改文件IIS_schema.xml 权限:
进入IIS_schema.xml文件权限修改,选择”高级”
选择”所有者”
选中 administrators 确定
再进入权限编辑,修改administrators 完全控制.
再去掉IIS_schema.xml的只读属性.
修改文件配置:
然后搜索 3000000 意思是 只允许上传 30MB 大小的文件,你在这后面多加一个0 就变成了 300MB 了就应该够用了。然后重启 IIS 7
<element name="requestLimits">
<attribute name="maxAllowedContentLength" type="uint" defaultValue="30000000" />
<attribute name="maxUrl" type="uint" defaultValue="4096" />
<attribute name="maxQueryString" type="uint" defaultValue="2048" />
<element name="headerLimits">
<collection addElement="add" clearElement="clear" removeElement="remove" >
<attribute name="header" type="string" required="true" isUniqueKey="true" validationType="nonEmptyString" />
<attribute name="sizeLimit" type="uint" required="true" />
</collection>
</element>
大约在1024行左右.
解决办法:
修改IIS_schema.xml这个文件要先获得这个文件的控制权;
进入目录C:\Windows\System32\inetsrv\config\schema,修改文件IIS_schema.xml 权限:
进入IIS_schema.xml文件权限修改,选择”高级”
选择”所有者”
选中 administrators 确定
再进入权限编辑,修改administrators 完全控制.
再去掉IIS_schema.xml的只读属性.
修改文件配置:
然后搜索 3000000 意思是 只允许上传 30MB 大小的文件,你在这后面多加一个0 就变成了 300MB 了就应该够用了。然后重启 IIS 7
<element name="requestLimits">
<attribute name="maxAllowedContentLength" type="uint" defaultValue="30000000" />
<attribute name="maxUrl" type="uint" defaultValue="4096" />
<attribute name="maxQueryString" type="uint" defaultValue="2048" />
<element name="headerLimits">
<collection addElement="add" clearElement="clear" removeElement="remove" >
<attribute name="header" type="string" required="true" isUniqueKey="true" validationType="nonEmptyString" />
<attribute name="sizeLimit" type="uint" required="true" />
</collection>
</element>
大约在1024行左右.
相关文章推荐
- 上传大于30M的视频时,出现找不到文件或目录错误的解决办法
- IIS7传大于30M的视频时出现找不到文件或目录错误正确处理方法
- 用KMP打开视频文件出现"无法创建图表生成器"错误的解决办法
- iis6.0添加asp.net 3.5网站 出现“HTTP 错误 404 - 文件或目录未找到”的解决办法
- 虚拟机下Ubuntu安装VMWare Tools出现错误“找不到kernel header文件路径”解决办法
- Android驱动开发【NDK模型】———NDK程序设计之产生头文件出现找不到appcompat-v7的错误解决办法
- 开源的项目xlistctrl编译时出现错误:“找不到uxtheme.h文件”的解决办法
- Microsoft Office 2013 破解出现输入错误,找不到脚本文件 解决办法
- Ubuntu下 交叉编译树莓派内核时出现错误“没有那个文件或目录” 的解决办法
- eclipse 找不到layout文件,出现错误-R cannot be resolved解决办法
- Ubuntu 10.10安装VMware Tools出现错误“找不到kernel header文件路径”的解决办法
- Microsoft Office 2013 破解出现输入错误,找不到脚本文件 解决办法
- 用KMP打开视频文件出现"无法创建图表生成器"错误的解决办法收藏(转)
- 通过assets向安卓程序目录中导入数据库文件出现错误的解决办法
- android使用mount命令挂载远程视频文件大于10G,播放时出现卡顿的解决办法
- 对VS升级SP2补丁,出现错误 1718。 文件被数字签名策略拒绝错误的解决办法
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- 脚本出现bad interpreter:没有那个文件或目录-解决办法
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- VS2005中编译dll文件, 出现"共享段无法找到"的错误及解决办法