Tips Station Asp.net Article Seo Articles
Tutorials Code Samples
›  Home
›  Mission
›  About us
›  Contact Us
›  Feedback
›  Terms & Condition
Asp Articles
IT Solutions
 
› ASP.NET

› Programming Tips

› Ajax

› Asp

› ADO.NET

› Databases

› SEO

› CSS And Designing

› Php

 
Most Viewed Articles
 
› Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

› Change theme dynamically without page refresh in ASP.NET

› Install AJAX On Machines Running Visual Studio 2005

› Creating Pretty Popups Using AJAX

› Simple ASP Image Resize Function

› SQL Server Performance Counters

› ASP.Net Interview Questions And Their Answers

› Encode Url using ASP

› Difference Between DataGrid and GridView in Asp.Net

› Select Specific Value WithIn Drop Down List Or Radio Button List

more...
 
 
Home> ASP.NET
 
Top 10 Best Practices for Production ASP.NET Applications
 

In no particular order, here are the top ten things I've learned to pay attention to when dealing with production ASP.NET applications. Hopefully they will help you save you some time and headaches. As always, your thoughts and additions are welcome.

  1. Generate new encryption keys
    When moving an application to production for the first time it is a good idea to generate new encryption keys. This includes the machine validation key and decryption key as well as any other custom keys your application may be using.
  2. Encrypt sensitive sections of your web.config
    This includes both the connection string and machine key sections. Note that if your application runs in a clustered environment you will need to share a custom key using the RSA provider.
  3. Use trusted SQL connections
  4. Set retail="true" in your machine.config
    < configuration >
    < system.web >
    < deployment retail=""true"" >< /deployment >
    < /system.web >
    < /configuration >

    This will kill three birds with one stone. It will force the 'debug' flag in the web.config to be false, it will disable page output tracing, and it will force the custom error page to be shown to remote users rather than the actual exception or error message.
  5. Create a new application pool for your site
    When setting up your new site for the first time do not share an existing application pool. Create a new application pool which will be used by only by the new web application.
  6. Set the memory limit for your application pool
    When creating the application pool, specifically set the memory limit rather than the time limit which is set by default.
  7. Create and appropriately use an app_Offline.htm file
    There are many benefits to using this file. It provides an easy way to take your application offline in a somewhat user friendly way (you can at least have a pretty explanation) while fixing critical issues or pushing a major update. It also forces an application restart in case you forget to do this for a deployment.
  8. Develop a repeatable deployment process and automate it
    It is way too easy to make mistakes when deploying any type of software. This is especially the case with software that uses configuration files that may be different between the development, staging, or production environments. I would argue that the process you come up with is not nearly as important as it being easily repeatable and automated. You can fine tune the process as needed, but you don't want a simple typo to bring a site down.
  9. Build and reference release versions of all assemblies
    In addition to making sure ASP.NET is not configured in debug mode, also make sure that your assemblies are not debug assemblies. There are of course exceptions if you are trying to solve a unique issue in your production environment ... but in most cases you should always deploy with release builds for all assemblies.
  10. Load test
    This goes without saying. Inevitably, good load testing will uncover threading and memory issues not otherwise considered.

This article has been taken from Daptivate.com

 
 
Vrp Technologies
 
Serversea Hosting
 
 
Latest Articles
 
› Sending SMS With PHP

› MySQL Join Tutorial

› Make An RSS Feed Using PHP

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

› Create Tell A Friend Script With HTML & PHP

› Benchmark And Optimize PHP Script Speed

› What Kind of DBA Are You?

› SQL Server Performance Counters

› SQL Server Performance Tips

more...
 
Random Articles
 
› Session Object in Asp

› SQL Server Performance Counters

› Browser Detection in ASP

› Working with DataSet Objects and XML

› Cascading Stylesheets Advantages: 5 Reasons To Use CSS

› Displaying Data using ASP.NET 2.0 Repeater

› Create an RSS Feed in Asp.net

› Sending SMS With PHP

› Read and display a text file in Asp.net

› Encrypt Applications Settings in Asp.Net

more...
 
Home Mission About us Contact us Feedback Terms Conditions
2008 © Copyright TipsStation. All rights reserved.