Steps to Migrate the Websites from IIS 7.5 to IIS 10

Steps to Migrate the Websites from IIS 7.5 to IIS 10

In this blog, We will show you the steps to migrate the websites from IIS 7.5 to IIS 10

 

REQUIREMENTS

  • Windows Server 2008 R2 VM
  • Windows Server 2016 VM
  • Web Deploy Tool

 

Note : In this demo, we are migrating the websites from windows server 2008 R2 to Windows 2016 server.

 

ENVIRONMENT OVERVIEW

  • We are using 2 VM’s as Windows server 2008 R2 and Windows server 2016 respectively. Also, we have installed IIS on both the servers.

 

  • Apart from that, we have installed ASP .NET 4.5 in windows server 2008 R2 VM to run the ASP.NET 4.5 applications.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • We enabled .NET 4.5 for DefaultAppPool in IIS.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Also, we have created two web application under default website as Alfrawebsite & TestApp.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

INSTALLING WEBDEPLOY

Note : Follow the below steps to install WEBDEPLOY on both source (Windows server 2008 R2) and destination (Windows Server 2016) servers.

 

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Scroll down and select the corresponding language for your region. In this demo, we are using the 64 bit English version.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Once the download is complete, Double-click on the MSI file. It opens the installation wizard. Click Next to continue.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  •  Select the I Accept the terms in the License Agreement check box and click Next.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Click on the Complete button.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Select Install button to begin the installation.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • It will take few minutes to complete the installation. Click Finish to close the installation wizard.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

PACKAGE CREATION IN SOURCE SERVER (WINDOWS 2008 R2)

  • Open the command prompt and run the below command to back up the IIS configuration before proceeding the migration.

%windir%\system32\inetsrv\appcmd add backup “PreWebDeployMigration”

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • IIS configuration backup will be available in  C:\windows\system32\inetsrv\backup folder.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Change the path to web deploy installed directory in command prompt. The default path is C:\Program Files\IIS\Microsoft Web Deploy V3 folder.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Execute the below command to get the dependencies of the website. Verify the output of the dependencies and make sure that those components were installed correctly on the destination server.

msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • In this demo, we have to change the DefaultAppPool .NET framework version from 2.0 to 4.0. So the same version of .NET needs to be installed on the destination server.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

Note : As we are migrating the websites to windows 2016 (IIS 10) and we have already installed the .NET 4.6 in the destination server.

 

  • Execute the below command to create a compressed package file of IIS websites.

msdeploy -verb:sync  -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip > WebDeployPackage.log

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • All the web application under default website was compressed as a zip file and placed it under C:\ drive. Also, you can verify the processed logs in C:\Program Files\IIS\Microsoft Web Deploy V3 folder.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Move the compressed package to the destination server. We moved the file through the local network share.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

EXTRACT PACKAGE IN DESTINATION SERVER (WINDOWS 2016)

  • Execute the below command to validate the package with the server dependencies.

msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/1 -whatif > WebDeploySync.log

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • The above command will show the information if any dependencies is missing in the destination server.

 

  • As per this demo, We have already enabled .NET 4.6 through server manager.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Once you verified the output, run the same command without –whatif option.

msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/1 > WebDeploySync.log

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Open the IIS manager and verify the web applications are available under default web site.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

  • Verify the website by accessing through a web browser.

Steps to Migrate the Websites from IIS 7.5 to IIS 10

 

VIDEO

Thanks for reading this blog. We hope it was useful for you to learn about migrating websites from IIS 7.5 to IIS 10.



Author: Loges
Logeswaran holds Microsoft certified engineer & solution architect certifications with over 11+ years of experience in the fields of hosting technologies and IMS/Cloud consulting. At AssistanZ, Logeswaran spearheads the strategic planning and execution of the company’s Microsoft based core technologies to Enterprise clients.

11 Comments

  • hasan

    Hi LOGES
    thank you for your instruction
    I want to migrate from iis 7.5 to iis 10 . my problem is that i have about 50 websites and none of them are located under default website. I mean that when i wanted to create my sites, i created them directly under sites not under default website.
    Now, what is your advice for me in this situation? Can i migrate all of my site with the way you introduced?
    thank you for your recommendation.

  • Hi Hasan,

    Thanks for your comment. Yes, you can migrate other websites using this tool. The website migration is done based on the website ID. The default website ID is 1. Like this, you can alter the migration commands with your website ID.

    For example, to get the list of dependencies of your website, try to use the command given below.

    msdeploy -verb:getDependencies -source:metakey=lm/w3svc/

    Try and let us know the output.

    Regards,
    Loges

  • Alfredo

    Hi Loges,
    thanks for your helpful post.
    Do you think this migration procedure could also work for a website running PHP (and Code Ingniter PHP framework) under IIS 7.5 ?
    Thanks a lot in adv.

  • Hi Alfredo,

    Thanks for your comment 🙂

    We haven’t tried with the PHP websites. We hope it will work the same way as ASPX websites.

    You can try and let us know if you face any issues.

    Regards,
    Loges

  • Alfredo

    Hi, it’s me again. 🙂
    I wanted to ask if this procedure also covers exporting the MS SQL database for the app that is going to be exported.
    Thank you!

  • Shaun

    Good Day Alfredo,

    I’m trying to move application from IIS 6.0 Windows Server 2003 to IIS 10 Windows Server 2016 but I’m failing on IIS 10 it’s saying “Page Cannot Be Displayed” does your migration also moves Databases of the Application to new destination server? Please assist me sir my contracts near expiring your assistance could help me renew or get permanent job. My manager is fighting me everyday please assist me sir I’m an intern. Thank you.

    Kind Regards

  • Mpireswork

    Hi all,

    I’m trying to install Web Deployment Tool on Win2k8 R2, but always fail with the next error:

    MSI (s) (D4:20) [16:53:38:151]: Created Custom Action Server with PID 3780 (0xEC4).
    MSI (s) (D4:FC) [16:53:38:182]: Running as a service.
    MSI (s) (D4:FC) [16:53:38:182]: Hello, I’m your 32bit Elevated Non-remapped custom action server.
    Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action InstallEtwManifest script error -2146827859, Microsoft VBScript runtime error: ActiveX component can’t create object: ‘oLocator.ConnectServer’ Line 9, Column 13,
    MSI (s) (D4:18) [16:53:47:371]: Product: Microsoft Web Deploy 3.6 — Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action InstallEtwManifest script error -2146827859, Microsoft VBScript runtime error: ActiveX component can’t create object: ‘oLocator.ConnectServer’ Line 9, Column 13,

    MSI (s) (D4:18) [16:53:47:371]: Closing MSIHANDLE (121) of type 0 for thread 2584
    MSI (s) (D4:18) [16:53:47:371]: Closing MSIHANDLE (120) of type 790536 for thread 4764
    Action ended 16:53:49: InstallFinalize. Return value 3.
    MSI (s) (D4:9C) [16:53:49:836]: User policy value ‘DisableRollback’ is 0
    MSI (s) (D4:9C) [16:53:49:836]: Machine policy value ‘DisableRollback’ is 0

    (This is not all the LOG file.)

    I also try to install in another Win2k8 R2 (this one without IIS I Think) everything works without any problem.

    Also, I got procmon saves of a good and bad version and trying to get some info from there.

    I spend the whole day trying to install this app, search with our friend google, a lot of posts but nothing solves the problem, 8h and not even a different error.

    Thanks in advance for everyone.

  • Hello. I see that you don’t update your website too often. I know that writing posts is boring and time consuming.
    But did you know that there is a tool that allows you to create
    new posts using existing content (from article directories
    or other websites from your niche)? And it does
    it very well. The new articles are unique and pass the copyscape
    test. You should try miftolo’s tools

  • This didnt work, we are recieing an error about cant add Child object AdvancedLogging provider doesnt support it

  • Anonymous

    Hi Team

    How to Migrate the Websites from IIS 7.5 to IIS 8 or 8.5

    should i follow same steps ?

  • harish

    Steps to Migrate the Websites from IIS 7.5 to IIS 8 or 8.5 ?
    Should we follow same steps ?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.