2013-07-03 8 views
6

Ich versuche, die automatische Bereitstellung einer Website im Erstellungsprozess einzurichten. Ich kann über Visual Studio 2012 veröffentlichen, aber wenn ich versuche, TFS Build automatisch bereitstellen zu lassen, erhalte ich einen Timeout-Fehler.Warum schlägt meine Webbereitstellung mit einer Zeitüberschreitungsausnahme fehl

Hier ist mein Befehl an den TFS Build-Prozess:

/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True 
/p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl=http://<MyServer> 
/p:DeployIisAppPath="InitiationTool" /p:UserName=BGRSDEV\admin /p:Password=<mypassword> 

Hier ist die Fehlermeldung:

 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4193): Web deployment task failed. (Could not complete the request to remote agent URL 'http://:8172/msdeploy.axd?site=InitiationTool'.) 

Could not complete the request to remote agent URL 'http://:8172/msdeploy.axd?site=InitiationTool'. The operation has timed out 

Ich habe versucht, den msdeploy.exe dump-Befehl ausgeführt wird und das gleiche Verhalten bekommen.

Dies funktioniert:

msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername=http://<MyServer>/MSDEPLOYAGENTSERVICE,username=BGRSDEV\admin,password=<mypassword> 

Dieses mal aus:

msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername="http://<MyServer>:8172/msdeploy.axd?site=InitiationTool",username=BGRSDEV\admin,password=<mypassword>,authType=basic -allowUntrusted 

Irgendwelche Ideen?

Dank

Antwort

12

fand ich die Antwort an anderer Stelle aber falls jemand hier kommt, musste ich https verwenden, nicht http. Und ich musste das Flag für das nicht vertrauenswürdige Zertifikat hinzufügen./p: AllowUntrustedCertificate = True

+3

in meinem Fall war nur eine Frage der Verwendung von https anstelle von http. danke für den Tipp! – JSancho

+0

Verwenden von HTTPS und der/p: AllowUntrustedCertificate = True und immer noch gelegentlich Timeouts zu sehen. – dmarlow

Verwandte Themen