ASP

Asp Upload:

  • When trying to upload files over 200KB on IIS 6 the file may never upload. It throws 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 editing the metabase.xml file you have to make changes on the IIS first.  In IIS, right click the name of the server and select properties.  Check “Enable Direct Metabase Edit”.
  • Find the metabase.xml file in the path:  “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.

Note:

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.

————————————————————————————————————————–

Command to switch IIS mode:

IIS 6.0 supports both the 32-bit mode and the 64-bit mode. However IIS 6.0 does not support running both modes at the same time on a 64-bit version of Windows.

Run the following commands in the command prompt to change the modes in IIS.

To switch IIS to 32-bit mode the following command should be used:

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

To switch IIS back to 64-bit mode the following command should be used:

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

Ref: http://kb.parallels.com/en/1125                Click

————————————————————————————————————————–

Advertisements
Comments
  1. Hi,

    This blog is very useful for sys admins and especially for iis(web) admins. People who wants to change your carrier in the field of web and system side. please make use of this blog, this is really amazing. I have taken lot of technical tips from this blog. i can see the things which i ever heard in the iis. U have rocked man…

    one suggestion man. Please add some notes for VPS.

    With Regards,
    Gopal

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s