title: MSDeploy "Hangs" on MSDeployPublish
body: <p>Trying to get MSDeploy working and it "hangs" on the MSDeployPublish task.
  It says </p>
  
  <blockquote>
    <p>"Start Web Deploy Publish the Application/package to
    <code>https://myserver:8172/msdeloy.axd?site=mysite</code> ... Starting Web
    deployment task from source: archiveDir(path to archive) to
    Destination: auto()."</p>
  </blockquote>
  
  <p>And it just stops. It will sit like this for 30 minutes, or more I suppose, before I kill the process. </p>
  
  <p>On the server it is deploying to, in this case myserver, there is an error from MSDeploy that reads:</p>
  
  <blockquote>
    <p>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()</p>
  </blockquote>
  
  <p>No other error logs or messages that I can find. 
  I can hit the url to msdeploy, for example if I go to <code>https://myserver:8172/msdeloy.axd</code> 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.</p>
  
  <p>The server (myserver) is Windows 2008R2 with IIS7.</p>
  
  <p>What really sucks, is if I REBOOT the server that I am deploying to (myserver) IT WORKS!</p>
  
  <p>Any ideas on what is going on here?</p>