【问题标题】:Azure Service Bus Connection Error from Worker Role来自辅助角色的 Azure 服务总线连接错误
【发布时间】:2016-02-18 15:00:27
【问题描述】:

我们有 Azure 工作者角色,它正在访问来自 Azure 服务总线主题的消息。这个过程是从一个主题读取一些消息并将一些消息发送到另一个主题。

到目前为止,这一切正常。突然,我们低于错误-

底层连接已关闭:接收时发生意外错误。 ---> System.Net.WebException:底层连接已关闭:接收时发生意外错误。 ---> System.ComponentModel.Win32Exception: 客户端和服务器无法通信,因为它们没有共同的算法 在 System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule,字符串包,CredentialUse 意图,SecureCredential scc) 在 System.Net.Security.SecureChannel.AcquireCredentialsHandle(CredentialUse credUsage、SecureCredential&secureCredential) 在 System.Net.Security.SecureChannel.AcquireClientCredentials(Byte[]& thumbPrint) 在 System.Net.Security.SecureChannel.GenerateToken(Byte[] 输入,Int32 偏移量,Int32 计数,Byte[]& 输出) 在 System.Net.Security.SslState.StartSendBlob(字节 [] 传入,Int32 计数,AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.ForceAuthentication(布尔接收第一,字节 [] 缓冲区,AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResultlazyResult) 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback 回调,对象状态,布尔值 preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回调,对象状态,布尔值 preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回调,对象状态) 在 System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult 结果) 在 System.Net.TlsStream.BeginWrite(字节 [] 缓冲区,Int32 偏移量,Int32 大小,AsyncCallback asyncCallback,对象 asyncState) 在 System.Net.ConnectStream.WriteHeaders(布尔异步) --- 内部异常堆栈跟踪结束 --- 在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 在 Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult1.b__49(GetAsyncResult1 thisPtr, IAsyncResult r) 在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult 结果)

环境的一些其他细节-

.Net 框架 - 4.0 工作者角色 osFamily="3" 和 osVersion="*"

我们尝试了以下选项-

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;

但这并不能解决问题。

谢谢 达兰

【问题讨论】:

    标签: servicebus


    【解决方案1】:

    错误是间歇性发生还是一直发生?

    由于 osVersion 被标记为“*”,这意味着来宾操作系统更新是自动安装的,因此怀疑 Azure 辅助角色安装了最新的来宾更新。

    从下面的链接来看,最新的客户操作系统似乎带来了 .Net 版本 4.5.2 而不是 4.5。因此怀疑可能导致此问题的新 .Net 版本存在某些问题。 https://azure.microsoft.com/en-us/documentation/articles/cloud-services-guestos-update-matrix/

    所以你可以尝试的一件事是回到旧版本的客户操作系统,比如说 “发布 201511-01”。此版本可以从 Azure 门户的“配置”选项下轻松更新。

    试试这个,看看是否能解决问题。保持帖子发布。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-28
      • 1970-01-01
      • 2013-08-07
      • 2016-04-04
      • 1970-01-01
      • 1970-01-01
      • 2012-07-28
      • 1970-01-01
      相关资源
      最近更新 更多