Question

Je dirige une commande MSDEPLOY avec succès au cours des dernières semaines, jusqu'à hier (au moins qui est quand j'ai d'abord été mis au courant de l'échec du script de déploiement). Je l'ai fait installer Visual Studio 2010 Service Pack 1 hier sur le serveur de build pour résoudre un problème lié aux transformations web.config, et je lance le script MSDEPLOY de ce serveur à installer sur un serveur distant (exécutant Windows Server 2008 R2 IIS 7.5) .

I intensifié la commande MSDEPLOY à verbeux et a la trace suivante:

-------------------------------------------------------
 Start executing msdeploy.exe
-------------------------------------------------------
 "C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" -source:package='E:\Staging\ChildSupportWebsite.Beta1\Release\_PublishedWebsites\Csws.UI_Package\Csws.UI.zip' -dest:auto,computerName='HFSWP121-03720',userName='DOMAIN\USERNAME',password='PASSWORD',includeAcls='False',tempAgent='true' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"E:\Staging\ChildSupportWebsite.Beta1\sit.Csws.UI.SetParameters.xml" -skip:Directory="Csws\\Participant" -skip:objectName=filePath,absolutePath="bin\\.*.xml|pdb"  -whatif  -verbose
Verbose: Using ID '557f88cc-6194-41fb-84b0-6895fe8bc47d' for connections to the remote server.
Verbose: Creating temporary directory '\\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d' on remote target.
Verbose: Copying temporary agent file C:\Program Files\IIS\Microsoft Web Deploy\Microsoft.Web.Delegation.dll to \\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\Microsoft.Web.Delegation.dll.
Verbose: Copying temporary agent file C:\Program Files\IIS\Microsoft Web Deploy\Microsoft.Web.Deployment.dll to \\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\Microsoft.Web.Deployment.dll.
Verbose: Copying temporary agent file C:\Program Files\IIS\Microsoft Web Deploy\MsDepSvc.exe to \\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\MsDepSvc.exe.
Verbose: Copying temporary agent file C:\Program Files\IIS\Microsoft Web Deploy\x64\axnative.dll to \\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\x64\axnative.dll.
Verbose: Copying temporary agent file C:\Program Files\IIS\Microsoft Web Deploy\x86\axnative.dll to \\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\x86\axnative.dll.
Verbose: Executing command line 'C:\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d\MsDepSvc.exe -listenUrl:http://+:80/557f88cc-6194-41fb-84b0-6895fe8bc47d/' on remote target.
Verbose: Temporary agent started on remote target. Process ID 2592.Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: The temporary deployment agent at 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' could not be contacted. It may still be starting up. The connection will be attempted again.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: The temporary deployment agent at 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' could not be contacted. It may still be starting up. The connection will be attempted again.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: The temporary deployment agent at 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' could not be contacted. It may still be starting up. The connection will be attempted again.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: The temporary deployment agent at 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' could not be contacted. It may still be starting up. The connection will be attempted again.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: The temporary deployment agent at 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' could not be contacted. It may still be starting up. The connection will be attempted again.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Verbose: Performing synchronization pass #1.
Verbose: Pre-authenticating to remote agent URL 'http://HFSWP121-03720/557f88cc-6194-41fb-84b0-6895fe8bc47d' as 'DOMAIN\USERNAME'.
Info: Adding sitemanifest (sitemanifest).
Verbose: Terminating the temporary agent process (ID 2592) on the remote target.

Verbose: Deleting temporary directory '\\HFSWP121-03720\C$\Windows\TEMP\MSDEPLOY\557f88cc-6194-41fb-84b0-6895fe8bc47d' on remote target.

Error: Unable to cast object of type 'Microsoft.Web.Deployment.DeploymentProviderOptions' to type 'Microsoft.Web.Deployment.DeploymentProviderOptions'.
Error count: 1.

J'ai googlé cela, mais je n'ai pas trouvé aucune information qui peut me rendre à une résolution. Toute aide serait grandement appréciée.

Était-ce utile?

La solution

Pour quelqu'un là-bas qui a utilisé ce depuis la ligne de commande, il se peut que vous avez à la fois v1 et v2 installés dans des cas où le changement

"C: \ Program Files \ IIS \ Microsoft Web Deploy \ msdeploy.exe" dans la ligne de commande

"C: \ Program Files \ IIS \ Microsoft Web Deploy v2 \ msdeploy.exe"

Il résolu ce problème pour moi. Hope qui aide.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top