工作者角色的

时间:2016-02-17 23:20:39

标签: servicebus

我们有Azure辅助角色,它正在访问Azure Service Bus主题中的邮件。这个过程是从一个主题和一个主题阅读一些消息。将一些消息发送给另一个主题。

到目前为止这种方法运作正常。突然间我们遇到了错误 -

底层连接已关闭:接收时发生意外错误。 ---> System.Net.WebException:基础连接已关闭:接收时发生意外错误。 ---> System.ComponentModel.Win32Exception:客户端和服务器无法通信,因为它们没有通用的算法    在System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule,String package,CredentialUse intent,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计数,字节[]和输出)    在System.Net.Security.SslState.StartSendBlob(Byte []传入,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst,Byte [] buffer,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)    在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)    在System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult结果)    在System.Net.TlsStream.BeginWrite(Byte []缓冲区,Int32偏移量,Int32大小,AsyncCallback asyncCallback,Object asyncState)    在System.Net.ConnectStream.WriteHeaders(布尔异步)    ---内部异常堆栈跟踪结束---    在System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)    在Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult 1.b__49(GetAsyncResult 1 thisPtr,IAsyncResult r)    在Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

环境的其他一些细节 -

.Net Framework - 4.0 工作者角色osFamily =“3”和osVersion =“*”

我们尝试了以下选项 -

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;

但这并未解决问题。

由于 Dharam

1 个答案:

答案 0 :(得分:0)

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

由于osVersion标记为“*”,这意味着会自动安装guest虚拟机操作系统更新,因此怀疑Azure辅助角色是否已安装最新的guest虚拟机更新。

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

所以你可以尝试的一件事就是回到旧版本的Guest OS “发布201511-01”。在“配置”选项下,可以从Azure门户轻松更新此版本。

试试这个,看看这是否可以解决问题。保持线程发布。

相关问题