locked
Getting Error while Sync of the Web server RRS feed

  • Question

  •  I am trying to Sync two web servers however I have encountered below error.

    Sync-WDServer : (11/13/2017 4:28:38 AM) An error occurred when the request was processed on the remote computer.
    Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
       at Microsoft.Web.Deployment.IAppHostConfigLocationCollection.AddLocation(String bstrLocationPath)
       at Microsoft.Web.Deployment.AppHostConfigProvider.AddChild(DeploymentObject source, Int32 position, Boolean whatIf)
       at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext)
       at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
       at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, 
    Nullable`1 syncPassId, String syncSessionId)
       at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable`1 passId)
    At line:1 char:13
    +             Sync-WDServer -SourcePublishSettings $src_publishing_file -Destinati ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Sync-WDServer], DeploymentException
        + FullyQualifiedErrorId : Microsoft.Web.Deployment.PowerShell.SyncServer

    The commands I have used are as below:
    $src_publishing_file = Join-Path $ENV:TEMP ("{0}.publishsettings" -f $ENV:COMPUTERNAME)
    $dst_site='testDeployement'
    New-WDPublishSettings -ComputerName $ENV:COMPUTERNAME -AgentType MSDepSvc -FileName $src_publishing_file -Site $dst_site
    $computer='computerName'
    $dst_publishing_file = Join-Path $ENV:TEMP ("{0}.publishsettings" -f $computer)            
    New-WDPublishSettings -ComputerName $computer -AgentType MSDepSvc -FileName $dst_publishing_file -Site $dst_site        Sync-WDServer -SourcePublishSettings $src_publishing_file -DestinationPublishSettings $dst_publishing_file            

    I am not sure whats happening, please help me.

    Note: I am not sure the category of this question, if you know please route it to proper one.

    • Moved by Bill_Stewart Thursday, January 25, 2018 10:20 PM Off-topic
    Monday, November 13, 2017 10:45 AM

All replies