On the source Windows Server 2008 32 Bit server we run the command:
msdeploy -verb:sync -source:webServer -dest:archiveDir=E:\exportedfiles,encryptPassword=somepass
All files from E:\exportedfiles on the source are then copied over to the destination server to the same folder
Then, on the destination Windows Server 2008 R2 64 Bit server, we run the command
msdeploy -verb:sync -source:archiveDir=E:\exportedfiles,encryptPassword=somepass -dest:auto
It imports all the files but crashes out during the final stage of the configuration import at the machineConfig32 with the following error:
Info: Deleting system.serviceModel (MSDeploy.webServer/webServer/machineConfig32
[@path='/']/location[@path='']/system.serviceModel).
Error: Invalid index. (Exception from HRESULT: 0x80070585)
Error count: 1.
If the -debug switch is used the output is:
[@path='/']/location[@path='']/system.serviceModel).
System.Runtime.InteropServices.COMException (0x80070585): Invalid index. (Except ion from HRESULT: 0x80070585) at Microsoft.Web.Deployment.IAppHostElement.GetPropertyByName(String bstrSubName) at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateObjectEntryIfNeccessary(IAppHostElement
sectionElement, SectionEntries entries)
at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateSectionEntriesIfNeccessary(IAppHostConfigLocation location, LocationSectionEntries locSecEntries)
at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateNativeModulesIfNeccessary(AdminManagerWrapper wrapper)
at Microsoft.Web.Deployment.CrossPlatformRuleHandler.PostSync(DeploymentSyncContext syncContext)
at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObjectdestObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
at MSDeploy.MSDeploy.ExecuteWorker()
Error count: 1.
Going from a 32bit 2008 IIS 7.0 server to another 32bit 2008 IIS 7.0 server this works fine. The problem is going to a 64 bit 2008 R2 IIS 7.5 server.
Any ideas?