Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Validate method:
C#
public override void Validate(string UserName, string Password)
       {

           objAuthenticatication = new Core.Authentication();
           if (!objAuthenticatication.AuthenticateUser(UserName, Password))
           {
               throw new MessageSecurityException("Userid or Password is invalid", new FaultException("The username or password you entered is incorrect."));
               // throw new FaultException("The username or password you entered is incorrect");
               //throw new MessageSecurityException("The username or password you entered is incorrect");
           }
       }


Any exception i throw from service will get unhandled MessageSecurityException in client.

I have thrown commented exception also, but getting same v.

How to Handle this MessageSecurityException in wcf service. and where to handle this.

Thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900