« Previous Next »

Thread: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

Last post 05-09-2009 10:02 AM by sasikantt24. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 10-22-2008, 9:03 AM

    • melvebak
    • Not Ranked
    • Joined on 10-21-2008, 8:32 PM
    • Posts 7

    Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Hi I am trying to migrate a site with the msdeploy tool in hopes that I can migrate 600+ more sites systematically.

    I am struggling trying to get this to work. I have ran the sync command, moved my content files and then I am able to run the msdeploy -verb:migrate -source:archivedir=c:\backup_name -dest:metakey=lm/w3svc/# siteidentifier

    (msdeploy.exe -verb:sync -source:archivedir=d:\siteArchives -dest:metakey=lm/w3svc/986238554 > webdeployarchive.log


    msdeploy -verb:migrate -source:archivedir=d:\archiveWebsites -dest:metakey=lm/w3svc/986238554 -verbose  > msdeploymigrate.log) 

    but nothing has generated. What am I doing wrong? I am working with a test web site. in the log I receive the error ( Fatal: Source (archiveDir) and destination (metaKey) are not compatible for given operation. 
    Change count: 0
    Fatal count: 1)

    This a fresh install of IIS7 so I only have the default sites.  I would like to be able to keep the site identifier from IIS 6 on this server also. 

    I am new to the IIS7 stuff but I have 600+ web sites that I need to migrate from a IIS6 server to this new IIS7 server and wonder how and what is the best approach.

    I have the following dependencies but they are common and I am not sure how to check that they are all there.

    dependencies
    dependency name=”AnonymousAuthentication” /
    dependency name=”WindowsAuthentication” /
    dependency name=”IPSecurity” /
    dependency name=”ServerSideIncludeDisabled” /
    dependency name=”ASP” /
    dependency name=”AspNet1.1″ /
    /dependencies

    Any help would greatly be appreciated.

    Thanks.

  • 10-22-2008, 3:01 PM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    What was the msdeploy command you ran in order to generate the archive?

    -Nina

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-22-2008, 3:22 PM In reply to

    • melvebak
    • Not Ranked
    • Joined on 10-21-2008, 8:32 PM
    • Posts 7

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    I think I have it figured out. I am not sure why I keep getting that.   Thanks for your response.

    -failureLevel:Never is the key to step over the dependencies you have one machine and no longer need on the other.

    To use the remote server allows no archive on the servers
    msdeploy -verb:migrate -source:metakey=lm/w3svc/986238554,computerName=compName,username=username,password=password  -dest:metakey=lm/w3svc/986238554 -failureLevel:Never > msdeploymigrate4.log

    OR another way is 


    To make an archive from existing server
    msdeploy -verb:sync  -source:metakey=lm/w3svc/754995972 -dest:archivedir=e:\archWebsite2  > msdeploymigrate2.log


    to load to new server
    msdeploy -verb:migrate -source:archivedir=d:\archWebsite2 -dest:metakey=lm/w3svc/754995972 -failureLevel:Never > msdeploymigrate22.log

  • 05-07-2009, 7:50 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Hi,

    I am getting following error message if I use -failureLevel:Never

    Error: unrecognized argument 'failureLevel'

    can you please help me out?

    Thank you

  • 05-07-2009, 11:36 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Can you try the command without failurelevel. 

    What is the command that you are trying sasikantt? Are you trying to sync an archivedir to a metakey or something different?

  • 05-08-2009, 4:31 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Hi,

    1. I created archive using following command on server where IIS6.0 is installed.

    msdeploy -verb:sync -source:contentPat
    h="Default Web Site/ApplicationName" -dest:archiveDir=C:\ApplicationName

    2. I copy archive to server where IIS7.0 is installed.

    3. I have tried following commands on destination server (IIS7.0). This server contains only "Default Web Site"

    msdeploy -verb:sync -source:archiveDir
    =C:\ApplicationName -dest:webServer60 -whatif
    Fatal:  Source (MSDeploy.contentPath) and destination (webServer60) are not comp
    atible for given operation
    Fatal count: 1

    msdeploy -verb:sync -source:archiveDir
    =C:\ApplicationName -dest:appHostConfig="Default Web Site\ApplicationName" -whatif
    Fatal:  Source (MSDeploy.contentPath) and destination (appHostConfig) are not co
    mpatible for given operation
    Fatal count: 1

    msdeploy -verb:sync -source:archiveDir
    =C:\ApplicationName -dest:contentPath=C:\ApplicationName -whatif
    Fatal:  Source (MSDeploy.contentPath) and destination (contentPath) are not comp
    atible for given operation
    Fatal count: 1

    msdeploy -verb:migrate -source:archive
    Dir=ApplicationName -dest:contentPath=C:\ApplicationName -whatif
    Fatal:  Source (MSDeploy.contentPath) and destination (contentPath) are not comp
    atible for given operation
    Fatal count: 1

    msdeploy -verb:migrate -source:archive
    Dir=ApplicationName -dest:contentPath=C:\ApplicationName -debug
    Microsoft.Web.Deployment.DeploymentException: Source (MSDeploy.contentPath) and
    destination (contentPath) are not compatible for given operation
       at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObjec
    t destinationObject, DeploymentObject sourceObject)
       at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject
    destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable)
       at Microsoft.Web.Deployment.DeploymentObject.SyncTo(String factoryName, Strin
    g path, DeploymentObjectBaseConfig baseConfig, DeploymentSyncOptions syncOptions
    )
       at MSDeploy.MSDeploy.Execute()
       at MSDeploy.MSDeploy.Main(String[] args)
    Fatal count: 1

    Please let me know what I am missing?
    what is the work around for the error "Source (MSDeploy.contentPath) and
    destination (contentPath) are not compatible for given operation"

     

  • 05-08-2009, 8:34 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Once you have the archive you dont need to specify the destination. You can use the auto keyword for deployment

    msdeploy -verb:sync -source:archiveDir=C:\ApplicationName -dest:auto

    Please let us know if you need any more info and remember to mark the response if it works for you.

  • 05-08-2009, 8:49 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Hi, 
    Thank you for your response.
    I tried with following command but no luck, can you please correct me.

    msdeploy -verb:sync -source:archivedir=C:\ApplicationName -dest:auto -debug


    Action: Adding MSDeploy.contentPath (MSDeploy.contentPath)
    Action: Adding child contentPath (MSDeploy.contentPath/contentPath)
    Fatal:  Sync operation 'AddChild' failed with destination MSDeploy.contentPath (
    MSDeploy.contentPath)
    Debug: Microsoft.Web.Deployment.DeploymentException: Child element 'contentPath'
     can not be added to element 'MSDeploy.contentPath'
       at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source
    , Int32 position, DeploymentSyncContext syncContext)
    Microsoft.Web.Deployment.DeploymentException: Child element 'contentPath' can no
    t be added to element 'MSDeploy.contentPath'
       at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source
    , Int32 position, DeploymentSyncContext syncContext)
       at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentOb
    ject destParent, DeploymentObject sourceObject, Int32 position)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(Deploymen
    tObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObje
    ct dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObjec
    t destinationObject, DeploymentObject sourceObject)
       at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject
    destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable)
       at Microsoft.Web.Deployment.DeploymentObject.SyncTo(String factoryName, Strin
    g path, DeploymentObjectBaseConfig baseConfig, DeploymentSyncOptions syncOptions
    )
       at MSDeploy.MSDeploy.Execute()
       at MSDeploy.MSDeploy.Main(String[] args)
    Fatal count: 2

    Thanks

  • 05-08-2009, 2:21 PM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    I tried the following and it works for me:

    I created an app on IIS 6.0 App1 under "Default Web Site" and created an archivedir as msdeploy -verb:sync -source:contentPath="Default Web Site/App1" -dest:archiveDir=C:\App1 and deployed it onto a Vista box with IIS 7.0 as                                                              msdeploy -verb:sync -source:archiveDir=C:\app1 -dest:auto,computername=servername

    Can you try syncing directly without using an archive

    msdeploy -verb:sync -source:contentPath="Default Web Site/App1" -dest:auto,computername=servername

     

  • 05-09-2009, 10:02 AM In reply to

    Re: Source (archiveDir) and destination (metaKey) are not compatible for given operation. Migrating from IIS 6 to IIS 7

    Thanks for all your inputs.
    There was installation problem on my destination server where IIS 7.0 is installed.
    I reinstall the MS deploy, and all problem get resolved.

    Thanks a lot.

     

     

Page 1 of 1 (10 items)
Microsoft Communities