2011-09-07 4 views
2

어제까지 지난 몇 주 동안 MSDEPLOY 명령을 성공적으로 실행했습니다. 적어도 배포 스크립트 오류를 ​​처음 알게되었을 때입니다. web.config 변환과 관련된 문제를 해결하기 위해 어제 빌드 서버에 Visual Studio 2010 서비스 팩 1을 설치했고 원격 서버에 설치하기 위해 MSDEPLOY 스크립트를 실행했습니다 (Windows Server 2008 R2 IIS 7.5 실행). .MSDEPLOY가 원격 임시 에이전트에 연결할 수 없습니다.

나는 자세한에 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. 

나는이를 봤하지만 한을. 어떤 도움이라도 대단히 감사하겠습니다. \ 프로그램 파일 \ IIS \ 마이크로 소프트 웹 배포 \

명령 줄에서 이것을 사용하고있다 거기서 사람들을위한
+0

업데이트 : 저는 Microsoft 기술 지원을 전화로 몇 시간 동안 보냈습니다. 우리는 이것에 대한 해결책을 찾지 못했습니다. 일시적인 해결책은 원격 시스템에 Web Deployment Agent를 설치하고 임시 에이전트 대신이를 사용하는 것입니다. – Philippe

답변

7

, 당신이 v1을 모두 가지고있는 경우 변경

"C에 설치 v2로하는 것이 될 수있다 C "

에 명령 줄에서"msdeploy.exe는 : \ 프로그램 파일 \ IIS \ 마이크로 소프트 웹 배포 V2 \ msdeploy.exe "

그것은 나를 위해이 문제를 해결했습니다. 희망이 도움이됩니다.

+1

참. 나는 우리가 그걸 보았다고 지정 했어야했다. 기본적으로 Visual Studio에서 생성 된 * .cmd 파일은 V1을 사용하므로 생성 된 파일을 사용하는 경우에는 V2를 사용하도록 수정해야합니다. 덧붙여 Web Deploy 3.0은 아직 베타 버전입니다 (단, 질문에서 설명한대로 문제가 해결됨). – Philippe