IIS 6 in Win20030, the default setting is particularly strict and secure, with a maximum of 204,800 bytes to be transmitted, which minimizes attacks caused by overly lenient timeouts and limits. For the sake of security, the default maximum request size is 200K (i.e., the maximum committed data limit is 200Kbyte, 204800Byte, in IIS 6There is no such restriction in the version before 0), this restriction often affects normal use when uploading**, and generally needs to be modified.
iis6.Solution 1 of the default maximum upload file limit under 0:
Step 1: Modify the IIS settings to allow direct editing of the configuration database. Open the Internet Information Service Manager, right-click on the "Local Computer" and select "Allow Direct Editing of the Configuration Database" in the Internet Information Service Options.
Step 2: Close the IIS Admin Service in the service and find MetaBase. under WindowsSystem32InesrvOpen the xml and find aspmaxrequestentityallowed to modify the required value, the default is 204800, that is, 200k, if you modify it to 20480000 (20m).
Step 3: Restart the IIS Admin Service.
iis7.The directory structure above 0 has changed slightly, and it is suitable for operating systems above win2008:
First workaround:
Open C:WindowsSystem32InetsRVContexSchemaiis Schemaxml, find something like this:
where defaultvalue="30000000", i.e. iis70. The default upload limit is 30000000 bytes (about 28.)6m)。
Second workaround:
Open IIS Manager Double-click ASP in IIS Open Configure ASP Properties for Programs Expand Restrict PropertiesModify the value of the Maximum Request Entity Subject Limit, and the default value is 200,000 (that is, less than 200 KB).
Modify it to the size you want to modify, e.g. 52000000 (50MB).
After the modification is completed, click "Apply", and then you can do it with peace of mind!