1

当我从 MS RM 客户端触发发布时,我收到以下错误。此错误消息来自目标机器的事件查看器。

Message: The remote server returned an error: (500) Internal Server Error.: \r\n\r\n   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClientResponseRetriever.EndGetAsyncMemoryStreamFromResponse(IAsyncResult asyncResult, IPlatformHttpClient platformHttpClient)
   at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClientResponseRetriever.EndDownloadString(IAsyncResult asyncResult, IPlatformHttpClient platformHttpClient)
   at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClient.EndGet(IAsyncResult asyncResult)
   at Microsoft.TeamFoundation.Release.Data.Proxy.RestProxy.BaseDeploymentControllerServiceProxy.GetPackageFileInfos(String packageLocation)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HttpPackageDownloader.CopyPackageAndUnpackIt(String packageSourceLocation, String filesDestinationLocation)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.CopyComponentFiles()
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.ComponentProcessor.DeployComponent()

从部署日志中,我可以看到文件复制组件失败。

我能够手动将文件从 RM 服务器机器复制到目标机器中的共享位置。我与运行部署代理和复制的同一用户共享的文件夹工作正常。

请参阅下面的部署日志屏幕。 部署日志屏幕
我期待专家的一些积极回应。

4

1 回答 1

0

这个错误会在不同的场景中发生。在我的情况下,我做了两件事来解决它。

  1. 我已将放置位置更改为共享位置(UNC 路径)。以前在发布模板中选择了“将构建输出复制到服务器”选项。
  2. 在 Azure 中为 TCP 和 UDP 打开端口 445。

现在我的发布没有这个错误了,build已经发布成功了……!

于 2014-10-30T18:00:29.980 回答