【发布时间】:2014-11-06 21:26:15
【问题描述】:
我将 WSHttpBinding 用于可能的 wcf 应用程序。当我尝试在 Windows 8.1(不是 Pro)上运行客户端时遇到问题。每次运行Service.Open()时应用程序都会崩溃
绑定配置:
WSHttpBinding binding = new WSHttpBinding();
binding.MaxReceivedMessageSize = 524288;
binding.ReliableSession.Enabled = true;
binding.MessageEncoding = WSMessageEncoding.Text;
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
对于其他操作系统,它运行良好。
异常消息:从另一方收到不安全或不正确安全的故障。故障代码和细节见内部FaultException。
内部异常:安全验证错误消息。
【问题讨论】:
-
捕获异常并阅读错误信息?