Thursday, April 14, 2011

Migrate a Web Site from IIS 6.0 to IIS 7

This quick guide will help you migrate a Web site from IIS 6.0 to IIS 7 by using the Web Deployment Tool.

What kinds of migrations can I accomplish with the Web Deployment Tool?
Migrate 1 or 1,000 Web sites from IIS 6.0 to IIS 7 including all the configuration settings, content and certificates

Migrate a single application 
Migrate an entire server (all Web sites, application pools, etc.) from IIS 6.0 to IIS 7
Migrate a custom manifest comprised of sites, application pools, assemblies, COM objects, registry keys, content and more from IIS 6.0 to IIS 7

Prerequisites
This guide requires the following prerequisites:
.NET Framework 2.0 SP1 or greater
Web Deployment Tool 1.1
Note: If you have not already installed the Web Deployment Tool, see Installing Web Deploy.
Part 1 - View your site's dependencies
1. Get the dependencies of the Web site by running the following command:
msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1
2. Review the output of the dependencies and look for any script maps or installed components in use by the site. For example, if Windows Authentication is in use by the Web site, you will see <dependency name="WindowsAuthentication" />.
3. If your site is inheriting any script maps, these will not be listed in the dependencies and you should also review the script maps for your site manually.
4. Compile a list of the components needed on the destination.
For detailed steps on analyzing the output of getDependencies, see Viewing Dependencies.
Part 2 - Configure the target
1. Review the list of dependencies and install them on the destination server.
For example, let’s assume you had the following in use for your Web site:
Windows Authentication
Anonymous Authentication
Based on this analysis of your dependencies, you would install the corresponding components and modules. 
Part 3 – Migrate your site to the target by using a package file

Read more: IIS