Web Deploy 3.6 Invalid Index error

Test4echo101 1 Reputation point
2021-06-03T12:41:25.967+00:00

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, Nullable1 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!

Windows development | Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Test4echo101 1 Reputation point
    2021-06-04T12:17:19.463+00:00

    Thank You SamWu-MSFT,

    Might be a misunderstanding here.

    When I say "Importing to the destination gets 99% complete then fails with:" This means absolutly nothing actually gets imported into the Destination IIS 10 instance. No need to reset to default config files since nothing gets imported.

    This is the frustrating issue with this error. Web Deploy V3.6 cannot complete the import via 64 bit msdeploy.exe nor the GUI in IIS.

    Event logs nor msdepoy logs in verbose mode shine ANY light on the root cause issue.

    Not even Microsofts Web Deploy Documentation lists Invalid Index as a error code for Web Deploy. Which leads me to believe this is NOT a Web Deploy error, but rather an underlying OS error that is manifesting during a Web Deploy Import.

    I am hoping someone can help determine if this Invalid Index error is a vauge Permissions issue/Missing file/folder issue, dependancy issue etc....

    I have done dependacy checks so I don't believe that is the root cause.

    Any how, I have recreated the Web Sites Manually. However, I still want discussion on this as no one seems to have any real answers for the above error.

    Thanks for your feedback, Much Appreciated!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.