Optimizing your ASP Application with Web.config

In previous articles, I demonstrated how to optimize your ASP Application by adding a few lines inside the web.config file. Those tips proved to be very useful, and that’s why in this article I will give you more tips on how to optimize your ASP application with Web.Config

Turning off Debugging

<compilation defaultLanguage=“c#” debug=“false” />

Always set your application debug to false. If you don’t do this, your application will load slower, since batch optimizations are disabled during debugging. Besides that, the application uses more memory at run-time.

Setting Trust Level to Medium

<trust level = “Medium” />

This is to provide application isolation, pretty useful if you have another ASP application under your hosting account. Medium trust level provides a constrained environment for applications and file system access is limited to the application’s virtual directory hierarchy.

Set ViewState to False

<pages enableViewState=“false” />

ViewState is a nice technique provided by ASP.Net, however it creates unnecessary page requests. On top of that, it has a huge impact on SEO because the actual content of the page is not processed by the search engine.

This concludes Optimizing your ASP Application with Web.config

Looking for quality Asp Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , , , , , , , , , | Posted under ASP .NET 2, ASP .NET 3.5, WebsitePanel Tutorials, Windows Server Admin | RSS 2.0

Author Spotlight

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

Leave a Reply

Your email address will not be published. Required fields are marked *