title: Why is Web Deploy giving me an error code 0x800704CD
body: <p>I'm trying to get Web Deploy to work from Web Matrix and I've searched through through all the logs and events and can't seem to find the source of the following error in the event viewer:</p>
  
  <pre><code>Log Name:      Microsoft Web Deploy
  Source:        Web Deploy
  Date:          9/4/2013 1:48:16 PM
  Event ID:      1
  Task Category: None
  Level:         Error
  Keywords:      Classic
  User:          XXX
  Computer:      XX
  Description:
  User: 
  Client IP: 
  Content-Type: 
  Version: 9.0.0.0
  MSDeploy.VersionMin: 7.1.600.0
  MSDeploy.VersionMax: 9.0.1762.0
  MSDeploy.Method: GetPackage
  MSDeploy.RequestId: 4cab8a9b-5c5c-4f99-8141-52e5453b88f9
  MSDeploy.RequestCulture: en-US
  MSDeploy.RequestUICulture: en-US
  ServerVersion: 9.0.1762.0
  Skip: objectName="^configProtectedData$"
  Provider: iisApp, Path: xxx.xxx.xxx
  A tracing deployment agent exception occurred that was propagated to the client. Request ID '4cab8a9b-5c5c-4f99-8141-52e5453b88f9'. Request Timestamp: '9/4/2013 1:48:15 PM'. Error Details:
  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.IO.BufferedStream.Dispose(Boolean disposing)
     at System.IO.Stream.Close()
     at Microsoft.Web.Deployment.PackageSerializer.Dispose()
     at Microsoft.Web.Deployment.DeploymentAgent.HandleGetPackage(DeploymentAgentWorkerRequest workerRequest)
     at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
     at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
  
  Event Xml:
  &lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    &lt;System&gt;
      &lt;Provider Name="Web Deploy" /&gt;
      &lt;EventID Qualifiers="0"&gt;1&lt;/EventID&gt;
      &lt;Level&gt;2&lt;/Level&gt;
      &lt;Task&gt;0&lt;/Task&gt;
      &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime="2013-09-04T17:48:16.000000000Z" /&gt;
      &lt;EventRecordID&gt;238&lt;/EventRecordID&gt;
      &lt;Channel&gt;Microsoft Web Deploy&lt;/Channel&gt;
      &lt;Computer&gt;xxxx&lt;/Computer&gt;
      &lt;Security UserID="S-1-5-21-3588641846-14347574-4076679054-500" /&gt;
    &lt;/System&gt;
    &lt;EventData&gt;
      &lt;Data&gt;User: 
  Client IP: 
  Content-Type: 
  Version: 9.0.0.0
  MSDeploy.VersionMin: 7.1.600.0
  MSDeploy.VersionMax: 9.0.1762.0
  MSDeploy.Method: GetPackage
  MSDeploy.RequestId: 4cab8a9b-5c5c-4f99-8141-52e5453b88f9
  MSDeploy.RequestCulture: en-US
  MSDeploy.RequestUICulture: en-US
  ServerVersion: 9.0.1762.0
  Skip: objectName="^configProtectedData$"
  Provider: iisApp, Path: xxx.xxx.xxx
  A tracing deployment agent exception occurred that was propagated to the client. Request ID '4cab8a9b-5c5c-4f99-8141-52e5453b88f9'. Request Timestamp: '9/4/2013 1:48:15 PM'. Error Details:
  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.IO.BufferedStream.Dispose(Boolean disposing)
     at System.IO.Stream.Close()
     at Microsoft.Web.Deployment.PackageSerializer.Dispose()
     at Microsoft.Web.Deployment.DeploymentAgent.HandleGetPackage(DeploymentAgentWorkerRequest workerRequest)
     at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
     at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)
  &lt;/Data&gt;
    &lt;/EventData&gt;
  &lt;/Event&gt;
  </code></pre>
  
  <p>I used Web Deploy on the server to create the settings file using IIS on the host.  This error appears during the simple web page compatibility test.  Any clues as to what may be going on? </p>