Good Day all,
I am tryning to Import sites from a Server 2008 IIS 7 install to a Server 2016 IIS 10 install using Web Deploy 3.6 on both.
Using the Source.zip to import.
Websites export just fine from the source IIS 7 instance using the GUI.
Importing to the destination gets 99% complete then fails with:
Log Name: Microsoft Web Deploy
Source: Web Deploy
Date: 6/1/2021 2:35:06 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: WINDSOR\User
Computer: WCLNet2
Description:
User: WINDSOR\
Client IP: xxx.xxx.xxx.xxx
Content-Type: application/msdeploy
Version: 9.0.0.0
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 9.0.1973.0
MSDeploy.Method: Sync
MSDeploy.RequestId: 9171b1f2-89cc-4f5f-b396-9e7fedf6b4dd
MSDeploy.RequestCulture: en-US
MSDeploy.RequestUICulture: en-US
ServerVersion: 9.0.1973.0
Skip: objectName="^configProtectedData$"
Provider: auto, Path:
A tracing deployment agent exception occurred that was propagated to the client. Request ID '9171b1f2-89cc-4f5f-b396-9e7fedf6b4dd'. Request Timestamp: '6/1/2021 2:35:03 PM'. Error Details:
System.Runtime.InteropServices.COMException (0x80070585): Invalid index. (Exception 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(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable1 syncPassId, String syncSessionId) at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable
1 passId, String user, String siteName)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
I have tried both the GUI and the 64 bit msdeploy.exe cmd line to import . Same error.
I think is has something to do with the machineconfig32/machineconfig64 providers, but cannot figure out how to approch resolving this.
Here is my Msdeploy.exe cmd script:
msdeploy -whatif > -verbose >msdeploysync-verbose.log -disableLink:ContentExtension -verb:sync -source:package='C:\webserver.zip',machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2,EncryptPassword=1234 -dest:auto,machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2,computername=webserver
Any ideas on what the root cause is for this error? Where to address this?
Thanks!