簡體   English   中英

MSDEPLOY無法聯系遠程臨時代理

[英]MSDEPLOY unable to contact remote temporary agent

在過去的兩周中,我一直成功地運行了MSDEPLOY命令,直到昨天(至少是在我第一次意識到部署腳本失敗的時候)。 我昨天確實在構建服務器上安裝了Visual Studio 2010 Service Pack 1,以解決與web.config轉換有關的問題,並且我確實從該服務器運行MSDEPLOY腳本以在遠程服務器上安裝(運行Windows Server 2008 R2 IIS 7.5)。 。

我加強了MSDEPLOY命令的詳細說明,並得到了以下跟蹤:

-------------------------------------------------------
 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.

我已經用谷歌搜索過,但是沒有找到任何可以使我解決的信息。 任何幫助將不勝感激。

對於從命令行使用此功能的任何人,可能是您同時安裝了v1和v2

命令行中的“ C:\\ Program Files \\ IIS \\ Microsoft Web Deploy \\ msdeploy.exe”

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

它為我解決了這個問題。 希望有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM