title: Using aspnet_regiis to change the ASP.Net version of a single site on a web server
body: <p>We would like to change a web site from version 1.1 to 2.0.50727 during the installation of a solution.</p>
  
  <p>We would prefer a solution that could do this in code.</p>
  
  <p>We can do this by running <strong>Aspnet_regiis -i</strong> . However, this has a drawback that it changes the version for all sites on the server, and the customer may have other sites that we should not change.</p>
  
  <p>Is there a way to do this in code?</p>
  
  <p>Is there a way to run Aspnet_regiis such that it only affects a single site on the web server?</p>