【发布时间】:2012-06-11 01:35:52
【问题描述】:
我的服务工作正常,现在我收到此异常并且服务停止工作:
System.ServiceModel.FaultException:处理消息中的安全令牌时出错
搜索互联网显示一些代码问题,但我的代码正在工作,现在它停止工作,不知道是什么问题..
堆栈跟踪
执行过程中抛出异常:System.ServiceModel.Security.MessageSecurityException:从对方收到不安全或安全错误。
有关故障代码和详细信息,请参阅内部 FaultException。 ---> System.ServiceModel.FaultException:处理消息中的安全令牌时出错。
---内部异常堆栈跟踪结束---
服务器堆栈跟踪: 在 System.ServiceModel.Channels.SecurityChannelFactory
1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(消息消息,TimeSpan 超时)在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作,布尔单向,ProxyOperationRuntime 操作,对象 [] ins,对象 [ ] 出局,TimeSpan 超时) 在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 在 [0] 处重新抛出异常: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 在 NewWcfService.IExternalStringService.Reverse(String value) 在 WcfWebClient._Default.Page_Load(Object sender, EventArgs e) 在 C:\projects\ACSSamples\ Microsoft\WebServices\Acs2UsernameBindingSample\WcfWebClient\Default.aspx.cs:55 行
【问题讨论】:
-
能否提供此异常的堆栈跟踪信息?
-
这是与您的访问控制服务相关的安全问题。您最近是否更改了任何导致此服务中断的证书?检查您的证书或任何依赖于安全性的东西,因为如果您没有更改任何代码,那么这可能是原因。
-
是的。我使用已过期的端点的测试证书。我会收到证书过期的通知,但没有错误消息。我制作了新证书并对其进行了更改,问题就消失了。不过谢谢..
标签: azure access-control servicebus