国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > php开源 > DedeCMS > 动易.net版出现找不到文件或目录错误的解决办法

动易.net版出现找不到文件或目录错误的解决办法

来源:程序员人生   发布时间:2014-03-31 14:00:05 阅读次数:2181次

上传大于30M的视频时,出现找不到文件或目录,这个情况是出现在使用iis7的系统上的,因为iis7限制了上传文件大小,默认允许最大上传30M。

解决办法:

修改IIS_schema.xml这个文件要先获得这个文件的控制权;

进入目录C:WindowsSystem32inetsrvconfigschema,修改文件IIS_schema.xml 权限:

iis7,IIS_schema.xml,权限

进入IIS_schema.xml文件权限修改,选择”高级”

iis7,IIS_schema.xml,权限

选择”所有者”

iis7,IIS_schema.xml,权限

选中 administrators 确定

iis7,IIS_schema.xml,权限

再进入权限编辑,修改administrators 完全控制.

iis7,IIS_schema.xml,权限

再去掉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行左右.

站长资讯网
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生