有关错误代码和详细信息,请参见内部FaultException. [英] See the inner FaultException for the fault code and detail

查看:68
本文介绍了有关错误代码和详细信息,请参见内部FaultException.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误的显示时间如下所示,
接收到来自另一方的不安全或不正确安全的故障.有关错误代码和详细信息,请参见内部FaultException.


我发现有趣的帖子,但由于我了解得不多,所以没有成效,
http://blogs.microsoft.co.il/blogs/mcs/archive/2008/06/24/the-limitations-of-wcf-sessions-part-1-transport-level-dependence.aspx
HE提及如下:
但是,使用WsHttpBinding时,WCF的传输层抽象层下的接缝开始破裂.该异常的类型为"System.ServiceModel.Security.MessageSecurityException",并且消息为:
``从另一方收到了不安全或不正确安全的故障.有关错误代码和详细信息,请参见内部FaultException.

请帮助

Error displays sometime like below ,
An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.


Interesting post i found but not productive as i dint understood much ,
http://blogs.microsoft.co.il/blogs/mcs/archive/2008/06/24/the-limitations-of-wcf-sessions-part-1-transport-level-dependence.aspx
HE Mentioned like:
"However, when using WsHttpBinding, the seams under WCF’s transport-level abstraction layer start to crack. The exception is of type "System.ServiceModel.Security.MessageSecurityException" and the message is:
''An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail

please help

推荐答案

System.Exception具有InnerException属性
http://msdn.microsoft.com/en-us/library/system.exception. innerexception.aspx [ ^ ]

也许无论发生什么情况,您都可以捕获异常,找出特定类型,将其强制转换为该类型,并检查一个名为FaultException的属性.
System.Exception has an InnerException Property
http://msdn.microsoft.com/en-us/library/system.exception.innerexception.aspx[^]

Maybe whatever is happening you can catch the exception, find out the specific type, cast to that type, and check for a property called FaultException.


这篇关于有关错误代码和详细信息,请参见内部FaultException.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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