为什么Web Deploy会给我一个错误代码0x800704CD

时间:2013-09-04 19:51:25

标签: iis-7 webmatrix webdeploy

我正在尝试让Web Deploy从Web Matrix工作,我搜索了所有日志和事件,似乎无法在事件查看器中找到以下错误的来源:

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:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Web Deploy" />
    <EventID Qualifiers="0">1</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-09-04T17:48:16.000000000Z" />
    <EventRecordID>238</EventRecordID>
    <Channel>Microsoft Web Deploy</Channel>
    <Computer>xxxx</Computer>
    <Security UserID="S-1-5-21-3588641846-14347574-4076679054-500" />
  </System>
  <EventData>
    <Data>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)
</Data>
  </EventData>
</Event>

我在服务器上使用Web Deploy在主机上使用IIS创建设置文件。在简单的网页兼容性测试期间出现此错误。关于可能发生的事情的任何线索?

2 个答案:

答案 0 :(得分:0)

错误主要是因为远程服务器或托管服务提供商关闭了请求。

有时也会说服务器正在尝试拒绝或尝试取消请求。例如,用户开始下载某个文件或页面,服务器已关闭,因此下载将被取消,或下载失败。

此错误代码存在许多问题。

以下是其他论坛的帖子。 forums.asp.net

最好的方法是检查您托管的服务器上的设置。或者直接与他们联系以获得有关此问题的帮助。

修改:

获取LogFiles:

您可以在此处获取LogFiles:

开始 - &gt;跑 - &gt; LogFiles文件

2011-09-20 21:25:25 xx.xxx.xxx.xxx 36482 192.168.10.32 80 HTTP / 1.1 POST / orders / mail / mailorderentry - - Timer_HeaderWait -

2011-09-20 21:22:29 xx.xxx.xxx.xxx 44399 192.168.10.32 80 HTTP / 1.1 POST / orders / mail / mailorderentry - - Client_Reset -

<强>的httpRuntime:

其次,如果httpRunTime超时(超时),请求关闭问题也会引发。但是我确信这个例外不在这里,但是仍然可以尝试:http://msdn.microsoft.com/en-us/library/e1f13641.aspx

防病毒(如果有):

此外,请尝试检查是否安装了防病毒软件,然后是否允许服务器与用户通信?有时与防火墙一起,防病毒软件也可能会尝试停止连接。

答案 1 :(得分:0)

我最近有了完全相同的eventLogs,在webmatrix web部署之后抛出了“无法发布”(没有任何明显的原因,因为它到目前为止已经工作了几个月)。

经过一些搜索(不幸)和大量的笨拙,我只是通过使用具有管理员权限的Windows用户而不是IIS管理员用户配置再次使用它。