動易.net版出現(xiàn)找不到文件或目錄錯誤的解決辦法
來源:程序員人生 發(fā)布時間:2014-03-31 14:00:05 閱讀次數(shù):2417次
上傳大于30M的視頻時,出現(xiàn)找不到文件或目錄,這個情況是出現(xiàn)在使用iis7的系統(tǒng)上的,因為iis7限制了上傳文件大小,默認允許最大上傳30M。
解決辦法:
修改IIS_schema.xml這個文件要先獲得這個文件的控制權(quán);
進入目錄C:WindowsSystem32inetsrvconfigschema,修改文件IIS_schema.xml 權(quán)限:

進入IIS_schema.xml文件權(quán)限修改,選擇”高級”

選擇”所有者”

選中 administrators 確定

再進入權(quán)限編輯,修改administrators 完全控制.

再去掉IIS_schema.xml的只讀屬性.
修改文件配置:
然后搜索 3000000 意思是 只允許上傳 30MB 大小的文件,你在這后面多加一個0 就變成了 300MB 了就應(yīng)該夠用了。然后重啟 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行左右.
站長資訊網(wǎng)
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
------分隔線----------------------------
------分隔線----------------------------