IIS 6 File Upload/Download Issue

by Vishwa 7. January 2007 16:07

When trying to upload files over 200KB on IIS 6 the file may never upload and you either get an error or are sent to a blank screen. By default Windows 2003 server limits file uploads to about 200KB in size. To overcome this limit you must edit the IIS metabase.xml file. 
 

Before you can edit the metabase.xml file you must tell IIS to allow you to edit the file.  In IIS, right click the name of the server and select properties.  Check "Enable Direct Metabase Edit".

 

  • Find the metabase.xml file located in C:\windows\sytem32\inetserv and open the file in Notepad.
  • Search for AspMaxRequestEntityAllowed and increase the value.  The default value is 204800 (200K).  Setting the value to 1000000 will allow 1 MB file uploads.
  • You may now wish to uncheck the IIS property called "Enable Direct Metabase Edit".

To increase the file download size limit, repeat all steps above but in Step 3 find the parameter called AspBufferingLimit.  The default download limit is 4MB.

In Classic ASP

If you are getting this issue in Classic ASP Page then to resolve this issue, modify the value in the AspMaxRequestEntityAllowed property to set the maximum number of bytes that are permitted in the entity body of an ASP request. To do this, follow these steps:

1. 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.

2. 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. Set this value to the lowest possible value that allows for the functionality that you want.

3. At a command prompt, type the following command, and then press ENTER:
iisreset

Tags:

.NET

Comments (3) -

Mohan
Mohan Germany
9/25/2007 1:30:54 PM #

i got a different problem, the code which was running good for sometime, started giving the error maximum request lenght exceeded (0x80004005) error.  I am not trying to upload any files, I am trying to query a database and fetch the values.
But when i made the changes to the web.config to 30000, it started working fine.  Want to know what caused teh problem.
Thanks in advance.

Mohan
Mohan Germany
9/25/2007 1:30:56 PM #

i got a different problem, the code which was running good for sometime, started giving the error maximum request lenght exceeded (0x80004005) error.  I am not trying to upload any files, I am trying to query a database and fetch the values.
But when i made the changes to the web.config to 30000, it started working fine.  Want to know what caused teh problem.
Thanks in advance.

internet advertising
internet advertising United States
9/5/2010 8:05:13 AM #

What is an Affiliate Program? This is the way advertisers, publishers and merchants the top. Websurfers visit a website affiliated with a particular network. May be your blog, a review site or some other web feature. Your affiliated website then sends that surfer to a merchant advertising with you, who then pays you for sending them the business. It's that simple. The big difference in types of Affiliate Networks are on what basis you get paid. The best Affiliate Programs are CPA Networks, or "Cost Per Action" networks. These systems pay when a specific action-submission of an email, submission of a ZIP code, free offer signup or other purchase-is undertaken by a visitor.

Comments are closed

About Me

Me Hello,my name is
Vishwa Mohan Kumar, PMP
MCP SOA Certified Architect
I am a Software Architect. This blog is result of my experiments.

Flickr Photos

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Archive

Recent Comments

Comment RSS

Live Traffic Feed