MSDeploy "Hangs" on MSDeployPublish

26

Trying to get MSDeploy working and it "hangs" on the MSDeployPublish task. It says

"Start Web Deploy Publish the Application/package to https://myserver:8172/msdeloy.axd?site=mysite ... Starting Web deployment task from source: archiveDir(path to archive) to Destination: auto()."

And it just stops. It will sit like this for 30 minutes, or more I suppose, before I kill the process.

On the server it is deploying to, in this case myserver, there is an error from MSDeploy that reads:

ERROR_SERIALIZER_ALREADY_DISPOSED - An error occurred on a callback thread. These errors are usually benign and are handled automatically. The details are below: System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD. at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush() at System.Web.HttpResponse.Flush(Boolean finalFlush) at System.IO.BufferedStream.FlushWrite() at System.IO.BufferedStream.Flush() at System.Xml.XmlTextWriter.Flush() at Microsoft.Web.Deployment.TraceEventStreamSerializer.WriteKeepAliveEvent()

No other error logs or messages that I can find. I can hit the url to msdeploy, for example if I go to https://myserver:8172/msdeloy.axd in a browser I get the self signed certificate warning and then get prompted for credentials, so it appears MSDeploy on the server is up and running.

The server (myserver) is Windows 2008R2 with IIS7.

What really sucks, is if I REBOOT the server that I am deploying to (myserver) IT WORKS!

Any ideas on what is going on here?

iis-7
msdeploy
asked on Stack Overflow Oct 22, 2012 by Joe Young

1 Answer

4

Just went through the same thing. This is the response from my hosting company that resolved the issue.

"While investigating, we found that the connection attempt was hanging on our end. The Web Management Service needed to be stopped to edit settings for the management service but upon attempting to stop this service, it would not shut down so we force killed the process and after starting it back up (no changes were made to settings), Visual Studio is making connections with Web Deploy without issue."

answered on Stack Overflow Aug 7, 2015 by masteroleary

User contributions licensed under CC BY-SA 3.0