.NET 2.0:已建立的连接被主机中的软件中止

发布于 2024-09-10 05:46:40 字数 536 浏览 1 评论 0原文

场景:

  • 我尝试使用以下代码将视频发布到 YouTube:

    YouTubeEntry createdEntry = service.Upload(newEntry);

  • 这在我的开发计算机(运行 Windows XP)上运行良好。

  • 它在 Win2k 服务器(运行 .NET 2.0)上失败,并出现以下错误:

2010-07-15||01:14:08 PM||已建立的连接被主机中的软件中止||系统||| |在 System.Net.Sockets.Socket.Send(Byte[] 缓冲区,Int32 偏移量,Int32 大小,SocketFlags socketFlags) -->在 System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)

我的问题:

  • 我应该如何解决这个问题?

Scenario:

  • I try to post a video to YouTube with the following code:

    YouTubeEntry createdEntry = service.Upload(newEntry);

  • This works fine on my developer machine (running Windows XP).

  • It fails on a Win2k server (running .NET 2.0) with the following error:

2010-07-15||01:14:08 PM||An established connection was aborted by the software in your host machine||System|||| at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
--> at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)

My Question:

  • How should I troubleshoot this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦毁影碎の 2024-09-17 05:46:40
  1. 检查以确保您没有被服务器上的防火墙或 TCP 过滤阻止
  2. 运行网络跟踪以查看实际从服务器传送的流量
  3. 检查 HTTP KeepAlive 是否已禁用(看到很多人在启用此功能时遇到问题)
  4. < a href="http://www.google.com/#hl=en&source=hp&q=An+builted+connection+was+aborted+by+the+software+in+your+host+machine&aq =f&aqi=&aql=&oq=&gs_rfai=CxQaFqEw_TKndBZHuzASm9qyBBgAAAKoEBU_Qv_-t&fp=f71f34b6e21b2e38" rel="nofollow noreferrer">Google 搜索,以了解可能在您的服务器上失败的任何其他可能原因。
  1. Check to ensure that you are not being blocked by firewalls or TCP filtering on the server
  2. Run a network trace to see what traffic is actually being communicated from your server
  3. Check HTTP KeepAlive is disabled (seeing a lot of people having issues with this on)
  4. Google it for any other possible reasons that this could fail on your server.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文