Solve the Problem of unknown attachments Uploaded By ZBlog

Source: Internet
Author: User

 
An error occurred while uploading files with ZB.
Error cause: Unknown error
Possible causes:
The size of asp files uploaded by IIS 6.0 in win2003 is kb.
Solution:
In 2003, the default size of files uploaded by ASP is 200 kb, that is, 204800!
Follow these steps:
1. Open the IIS manager and select allow direct editing of the configuration database.
2. Disable the iis admin service in the service;
3. Next, find the file c: \ windows \ system32 \ inetsrv \ metabase. xml, open the file in notepad, and use the "Search" function in notepad.
Search for the keyword "AspMaxRequestEntityAllowed", and you will find AspMaxRequestEntityAllowed = 204800, Which Is win 2003 used to limit the maximum size of uploaded files. The default value is 204800, Which is kb, modify the value. 1 MB corresponds to 1024000, and 10 MB corresponds to 10240000. Set this value and save the file.
4. Restart the iis admin service.
A vbs script is attached to change the upload size limit, which can take effect without restarting the iis service.
'Copy this code to notepad and save it as: win2003-200K.vbs, and check that the extension is. vbs.
Set providerObj = GetObject ("winmgmts:/root/MicrosoftIISv2 ")
Set vdirObj = providerObj. Get ("IIsWebServiceSetting = 'w3svc '")
WScript. Echo "Before:" & vdirObj. AspMaxRequestEntityAllowed
VdirObj. AspMaxRequestEntityAllowed = 20480000 'specifies the size of the byte that can be received. The default value is 204800, that is, 200 kb.
VdirObj. Put _()
WScript. Echo "Now:" & vdirObj. AspMaxRequestEntityAllowed
If your system has been configured for security, an error may occur during running. Use the modify configuration file directly.
Disable the iis admin service in the service first.
Find metabase. xml under windows \ system32 \ inetsrv,
Open and find ASPMaxRequestEntityAllowed to change it to the desired value,
Restart the iis admin service.
The following script uploaded on the Internet is an error script. Please do not use it. I cannot test it.
Set providerObj = GetObject ("winmgmts:/root/MicrosoftIISv2 ")
Set vdirObj = providerObj. get ("IIsWebVirtualDirSetting = 'w3svc/1/root '")
'Output current value:
WScript. Echo "Before:" & vdirObj. AspMaxRequestEntityAllowed
'Set attributes:
VdirObj. AspMaxRequestEntityAllowed = 204800000 'Save the attribute changes in the configuration database:
VdirObj. Put _()
'Output the changed Value
WScript. Echo "Now:" & vdirObj. AspMaxRequestEntityAllowed

This article comes from the dedicated waiting blog

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.