Why my deployment on the Internet cannot time out

I am trying to set up automatic deployment of a website during the build process. I can publish through Visual Studio 2012, but when I try to create an automatic TFS deployment, I get a timeout error.

Here is my command for the TFS build process:

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

Here is the error message:

  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

I tried running the ddump msdeploy.exe command and getting the same behavior.

It works:

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

This time:

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

Any ideas?

thanks

+6
source share
2 answers

I found the answer elsewhere, but in case someone came here, I needed to use https rather than http. And I needed to add a flag for an untrusted certificate. / p: AllowUntrustedCertificate = True

+12
source

In my case, I found that an Internet proxy was enabled for the account, which sent MSDeploy a request to the Internet instead of the local network.

0
source

Source: https://habr.com/ru/post/948656/


All Articles