Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 /IIS 7 have a limit of 200 KB for ASP requests in general and file uploads in particular.
- Go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"
- if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice
- Check whether the same variable shows up in other places in the file.
- do issreset
Or from the command prompt
- At a command prompt, type the following command, and then press ENTER:
- cd drive:\inetpub\adminscripts
- Note In this command to change folders, drive is a placeholder for the hard disk where IIS is installed.
- At a command prompt, type the following command, and then press ENTER:
- cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size
- Note In this command, size is a placeholder for the largest file size upload that you want to allow. The maximum value is 1,073,741,824 bytes. At a command prompt, type the following command, and then press ENTER:
- iisreset
Follow these steps in IIS 7
- Open IIS Manager (inetmgr)
- Open "ASP"
- Go to Limit properties
- Edit maximum equesting Entity Body Limit - (say for eq 1073741824)
- do issreset
Or from the command prompt
No comments:
Post a Comment