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