【问题标题】:Exception thrown using VS publish on 1 developers machine在 1 台开发人员机器上使用 VS 发布引发异常
【发布时间】:2017-05-16 08:47:49
【问题描述】:

当通过 Visual Studio 2017 和 2015 部署 1 个应用程序时,我们的一位开发人员在服务器事件日志中收到以下异常。

没有其他开发人员遇到此异常,而且似乎开发人员尝试部署的所有应用都会发生这种情况。

这是服务器上的日志所说的...

The description for Event ID 1 from source Web Deploy cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

User: S0000878\WROW
Client IP: 10.100.177.100:80
Content-Type: application/msdeploy
Version: 9.0.0.0
MSDeploy.VersionMin: 7.1.600.0
MSDeploy.VersionMax: 9.0.1972.0
MSDeploy.Method: Sync
MSDeploy.RequestId: 94589097-54ba-4753-a37b-32571bfe6b8f
MSDeploy.RequestCulture: en-GB
MSDeploy.RequestUICulture: en-GB
ServerVersion: 9.0.1962.0
Skip: objectName="^configProtectedData$"
Provider: auto, Path: 
A tracing deployment agent exception occurred that was propagated to the client. Request ID '94589097-54ba-4753-a37b-32571bfe6b8f'. Request Timestamp: '16/05/2017 10:26:59'. Error Details:
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadInt16()
   at Microsoft.Web.Deployment.PackageDeserializer.GetNextEntryType()
   at Microsoft.Web.Deployment.SerializationProvider..ctor(DeploymentBaseContext baseContext, PackageDeserializer deserializer)
   at Microsoft.Web.Deployment.PackageDeserializer.GetSerializationProvider()
   at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentAsyncData asyncData, Nullable`1 passId, String user, String siteName)
   at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAgentAsyncData asyncData)
   at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyncData asyncData)

我不知所措,因为部署过程适用于所有其他开发机器和我们的构建盒,但只有服务器抱怨。

我应该在开发人员机器上寻找什么可能有助于指出这里的真正问题?

【问题讨论】:

    标签: c# visual-studio deployment


    【解决方案1】:

    问题似乎是由开发人员机器上的代理设置引起的。

    这类问题可能是由 Fiddler 等工具引起的(开发人员经常使用它来调试对 Web 服务的 API 调用)。

    在这种情况下,开发人员似乎已通过修复 VS 来修复它,这表明 VS 安装也存在问题。

    【讨论】:

      【解决方案2】:

      就我而言,问题是由我们环境中的安全软件引起的。然而,在研究这个问题时,我注意到这些也是 Web Deploy 工作所必需的:

      • 应安装管理服务(添加角色和功能 > Web 服务器)
      • Web 管理服务和 Web 部署代理服务应该是 运行
      • 确保 Fiddler 或任何其他类似软件不是 发布时运行
      • 确保 TCP 端口 8172 在 服务器

      来源:Web Deploy experienced a connection problem (ERROR_CONNECTION_TERMINATED)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-02-17
        • 1970-01-01
        • 2019-09-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多