Move website from IIS 6 to IIS 7

Posted on 2012-08-22
Last Modified: 2013-11-26
We want to move a single website from IIS 6 to a new server running IIS 7. Is there a easy method to do this?
Question by:Vestfrost
    LVL 10

    Accepted Solution

    Hi ,

    Follow steps is IIS 6.0   <Exporting website from iis6 >

    Right  click on website and select save website configuration  option under all task, give location to save xml file.

    same procedure follow to export application pool

    Follow stpes in iis 7 / 7.5 <import website in iis 7.5>

    To Import the website:
    %windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml

    To Import the applicaton pool
    %windir%\system32\inetsrv\appcmd add apppool /in < c:\myapppool.xml

    Make sure you have to use elevated command prompt, to run above

    LVL 8

    Expert Comment

    by:Anurag Agarwal
    Hi Vestfrost,

    Try with these steps for Easy and Quickly

    ** Point to note Keep a backup of entire application

    1. Create Application Pool ( if Framework is till 3.5 use .NetFramework v2.0 else if u r using 4.0 then select Framework version 4.0, Select Managed Pipeline as integrated )

    2. Create Application in IIS 7, give alias name , and path, Select Application Pool which u have created in step 1

    3. Update your web config as per your framework ( I mean if u r updating to .Net 4.0 create  a new webconfig file using vs2010 add all references , connection strings and other setting etc.) else u can use the webconfig file as it is.

    4. Thats all u have moved to IIS7

     IIS7 manages rests of all things (some minor tweaks may be needed as per your project complexities)

    Incase u have any further issues post ur problems.....
    LVL 1

    Author Comment

    Hi Gaurav. When I try to import it from a elevated command promt, I get this error:

    "Failed to process input: Invalid XML input - please make sure that your XML is well-formed and follows the required format (HRESULT=8000ffff)."

    The XML file looks fine, so I dont understand why it's invalid.
    LVL 10

    Expert Comment


    Web-deploy tool might be help you more,

    Please check below link

    This tool also verify dependencies on source server.
    LVL 1

    Author Comment

    Hi Gaurav05.

    When I try to migrate it to the IIS7, I get this error:

    Warning: The Dependency Check In Use Rule detected ASP.NET version v1.1. Make sure that ASP.NET is installed and configured with IIS on the destination.

    As far as I can see ASP.NET is installed.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why do Marketing keep bothering you?

    Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will give a short introduction and overview of Backup Exec 2014 and the additional features that have been added over its predecessor Backup Exec 2012. As with Backup Exec 2012, the Backup Exec button in the upper left corner. From her…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now