基础连接已关闭:发送中发生意外错误 [英] The underlying connection was closed: An unexpected error occured on a send

查看:84
本文介绍了基础连接已关闭:发送中发生意外错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在本地运行/调试我的云项目,但是服务总线连接不断因错误而崩溃:

I am trying to run/debug locally my cloud project, but service bus connection keeps crashing with error:

<15:46:59> MessagingFactory successfully created
<15:47:39> Exception: The underlying connection was closed: An unexpected error occurred on a send.. 

....
   System.IO.IOException: Unable to read data from the transport connection: 
    An existing   connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)}

使用Service Bus Explorer工具时,我也收到此错误.

Also I receive this error when using Service Bus Explorer tool.

部署到云中时,一切正常,服务总线连接正常.

When deploy to cloud everything works ok, service bus connection is ok.

有人可以帮我吗?可能是什么原因?预先谢谢你!

Can anyone help me with this? what could be the reason? Thank you in advance!

推荐答案

有多种原因导致此类错误,因此您可以检查以下内容

There are several reason leading to such error so you may check the following

  • 您已正确配置设置.
  • 系统中的防火墙允许连接(协议,主机和端口)
  • 在网络中配置的DNS服务器能够解析主机.
  • 您的ISP由于任何原因未阻止您的连接

由于没有针对您的错误的固定解决方案,因此您可能需要付出一些努力才能找出实际的问题.如果启用,您还可以从日志文件中找到一些有用的信息.

Since there is no fixed solution for your error, you may have to work a little hard to figure out the actual issue. You may also find some useful information from the log files if enabled.

这篇关于基础连接已关闭:发送中发生意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆