« Previous Next »

Thread: Migrate IIS 6 apps to IIS 7

Last post 11-11-2008 8:42 PM by yaminij. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 11-07-2008, 10:11 AM

    Migrate IIS 6 apps to IIS 7

    I have 6 web sites in IIS with applications.  How would I midgrate applications inside of web sites and the associated application pool?

    I tried using

     msdeploy -verb:sync -source:appPoolConfig:=/LM/W3SVC/714808345/Root/_layouts dest:archivedir=c:\site3archive

    C:\Program Files\IIS\Microsoft Web Deploy>msdeploy -verb:sync -source:appPoolCon
    fig=/LM/W3SVC/714808345/Root/_layouts -dest:archivedir=c:\site3archive

     But it returns the following error


    Fatal:  Object of type 'appPoolConfig' and path '/LM/W3SVC/714808345/Root/_layou
    ts' cannot be created
    Fatal:  Unable to access the IIS configuration system. Please make sure you have
     IIS 7.0 (or higher) installed.
    Fatal:  Retrieving the COM class factory for component with CLSID {2B72133B-3F5B
    -4602-8952-803546CE3344} failed due to the following error: 80040154.
    Fatal count: 1

  • 11-07-2008, 5:43 PM In reply to

    Re: Migrate IIS 6 apps to IIS 7

    You should be using metaKey and not appPoolConfig while migrating from IIS 6.0. To sync an application along with its corresponding appPool, you should use a manifest

    The manifest should look something like

    <sourceXml>

    <metaKey path="/LM/W3SVC/AppPools/AppPoolName"/>

    <metaKey path="/lm/w3svc/714808345/Root/_layouts"/>

    </sourceXml>

    Hope this helps

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 11-11-2008, 9:51 AM In reply to

    Re: Migrate IIS 6 apps to IIS 7

    When I run

    msdeploy -verb:sync -source:metaKey=/LM/W3SVC/714808345/ROOT/_layouts/ -dest:archivedir=c:\site5archive

    it compiles all the files.  Files should not be included just the Application Pool. 

     Under /_layouts/ consist of 20 app. pools.  These are what needs to be transferred to IIS 7.0. 

    The above command errors out with

    Action: Adding child metaProperty (/LM/W3SVC/AppPools/.NET 2.0 App Pool/inc/Scri
    ptMaps)
    Action: Deleting metaProperty (/LM/W3SVC/AppPools/.NET 2.0 App Pool/AppPoolAutoS
    tart)
    Fatal:  Sync operation 'Delete' failed with destination metaProperty (/LM/W3SVC/
    AppPools/.NET 2.0 App Pool/AppPoolAutoStart)
    Fatal:  Access to the path is denied.
    Fatal count: 2 

     Any advice? 

    Thanks

  • 11-11-2008, 10:44 AM In reply to

    Re: Migrate IIS 6 apps to IIS 7

    OK, I was able to figure it out. BUT!


    I used:msdeploy -verb:sync -source:metaKey=/LM/W3SVC/551018667/ -disableLink:ContentExtension -dest:archivedir=c:\site6archive on the source server (IIS 6.0)

    The destiniation server is now where I am having problems.  I copied site6archive to the IIS 7.0 server. 
    Error returned

    msdeploy -verb:migrate -source:archivedir=c:\site6archive -dest:metakey=lm/w3svc/551018667 -whatif > msdeploysync.log
    Fatal:  Metabase keys /LM/W3SVC/551018667 and /lm/w3svc/551018667 are not compat
    ible for syncing
    Fatal count: 1

    Closer but no cigar.  Does anyone have advice?

    Thanks,
    Mike

  • 11-11-2008, 2:25 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: Migrate IIS 6 apps to IIS 7

    Try with source metakey path not ending with / (source:metakey=/lm/w3svc/551018667) and keeping destination metakey path without terminating slash. Metakey paths with ending slash is seen differently than one without.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 11-11-2008, 4:40 PM In reply to

    Re: Migrate IIS 6 apps to IIS 7

    I think you have encountered a bug.  The issue is that the site ID is too large.  If you were to have an ID < 214800000, I think it would work fine. I'm not sure if you could verify that is correct since you have to live with your site IDs. 

    If you need a private fix, maybe the IIS team can provide one?

  • 11-11-2008, 8:42 PM In reply to

    Re: Migrate IIS 6 apps to IIS 7

    Could you try with upper case lm/w3svc?

    msdeploy -verb:migrate -source:archivedir=c:\site6archive -dest:metakey=LM/W3SVC/551018667

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
Page 1 of 1 (7 items)
Microsoft Communities