阅读背景:

如何从WCF客户端应用程序中的UserNamePasswordValidator捕获异常?

来源:互联网 

I've written simple WCF service using netTcpBinding and security mode="Message" and clientCredentialType="UserName". Everything works fine when I pass valid username and password, session is established the way I wanted. However when the credentials are wrong exception is thrown though I can't catch it in my client application in try catch block. Did anyone have the same problem ? Here is my custom validator...I've written simple WCF service using netTcpBin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: