Thursday, September 23, 2010

Disable inheritance of web.config

This is helpful when we need to use a different web.config for a virtual directory and not to inherit any settings from the web.config of root folder.

Add the below tag to root web.config


 <location path="." inheritInChildApplications="false" >


    <system.web>
    ...

   </system.web>
  </location>

Overcome file upload issue / limit in ASP pages, Change attachment size for Mail Enable

By default, on ASP pages the file upload limit is set to 200KB. Here are the steps to increase the limit in IIS6 and IIS7

This update can be applied to change the attachment limit in Mail Enable webmail interface.


IIS 6
------
In IIS6, we need to edit the "metabase.xml" to change the limit


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


2 - Find the metabase.xml file located in C:\windows\sytem32\inetserv and open the file in Notepad.


3 - Search for AspMaxRequestEntityAllowed and increase the value.  The default value is 204800 (200K).  Setting the value to 1000000 will allow 1 MB file uploads.


4 - You may now wish to uncheck the IIS property called "Enable Direct Metabase Edit".




IIS7
----


Here we can do this as a Server wide property or configure it for each domain

1 - Open Up IIS Manager
2 - Click on ASP
3 - Expand Limits Properties
4 - Change the default 200KB to a bigger value.

To change the value for a single domain, find and edit the ASP property by going on to that domain only.

Restart IIS

Friday, September 17, 2010

Extra Memory for your Windows 7 or Vista

You can use an USB flash memory as an additional memory on your Windows 7 or Vista Operating system. Just plug it in and try the below settings:

• Right-click the USB flash memory drive letter and select “Properties”.
• Click the “Readyboost” tab at top in the Properties window.
• Now in the list of options, select “Dedicate this device to ReadyBoost.”
• Optionally, you can choose “Use this device” and dedicate a specific amount of Readyboost memory on the USB drive.
• Click the “OK” button.

Give a try and enjoy the performance :)