IIS7 file or directory error is not found when transmitting video larger than 30M

Source: Internet
Author: User
Tags file size

IIS7 a solution that does not find a file or directory error when you pass a video that is greater than 30M




This situation occurs on systems that use IIS7, because IIS7 limits the size of the uploaded file, allowing the maximum upload of 30M by default.





Solution:


Modify Iis_schema.xml This document to first obtain the control of this document;





Enter directory C:windowssystem32inetsrvconfigschema, modify file iis_schema.xml permissions:








Enter Iis_schema.xml file permission modification, select "Advanced"





Select "Owner"





Select Administrators OK





again into the permission to edit, modify administrators Full control.





then remove the read-only property of the Iis_schema.xml.


Modify file configuration:


then search for 3000000 meaning is only allowed to upload 30MB file size, you add a 0 after this to become 300MB should be enough. Then restart 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> is about 1024 lines.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.