I've got an ASP.net MVC5 site setup using teamcity and webdeploy for continuous delivery.
What's strange and what I don't understand, is how the webdeploy makes the website 'hang', for near 10 minutes.
The publish task completes in less than like 30 seconds, and is completely stopped and finished. But if you hit the website, it just 'waits', displaying nothing, doing nothing for about 5 to 10 minutes.
Can anyone give me some hints as to what is going on behind the scenes? If it really publishes in like 30 seconds...what's with the long wait for the website to be usable again?
Edit
Here are the command line arguments i'm using in teamcity with MSBuild (added the newlines for readability)
%env.Configuration%
in the case i"m conserned about is Release
and %env.TargetServer%
is my server Ip Address
/P:Configuration=%env.Configuration%
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=WMSvc
/P:CreatePackageOnPublish=True
/P:Username=myDomain\myUser
/P:Password=myPassword