Answered by:
UserNamePasswordValidator Is unknown in wcf service application ?

Question
-
Hello all,
I'm trying to implement 3 tier application so I have 3 separate app like this(Client(console app),Service Contract(Class library),wcf service)
the problem is here when i'm trying to add my Custom UserNamePasswordValidator Class , the UserNamePasswordValidator base class is unknown.
I've already add it's reference ,
so I have to make it in my contract library and It's work But Because i need to connect to db to check user name and password and my data mapper class is in Service layer , I think it's better to have the custom usernamepasswordValidator in my wcf service ?!? correct me if I wrong.
thank you.
Sunday, November 14, 2010 7:27 AM
Answers
-
You need to add reference to System.IdentityModel.Selectors.
See example here:
http://code.google.com/p/wcf-clear-username-binding/
http://webservices20.blogspot.com/
WCF Security, Interoperability And Performance Blog- Marked as answer by Bin-ze Zhao Monday, November 15, 2010 9:55 AM
Sunday, November 14, 2010 5:50 PM
All replies
-
You need to add reference to System.IdentityModel.Selectors.
See example here:
http://code.google.com/p/wcf-clear-username-binding/
http://webservices20.blogspot.com/
WCF Security, Interoperability And Performance Blog- Marked as answer by Bin-ze Zhao Monday, November 15, 2010 9:55 AM
Sunday, November 14, 2010 5:50 PM -
Thanks Yaron,
But I told you that I've already added the refrence ,
So if you create a new project in vs 2010 (wcf application project) you can't load system.IdentityModel.Selectors.
Monday, November 15, 2010 5:36 AM -
Hi,
Been tested, didn't have the same problem.
Thanks
Binze
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Monday, November 15, 2010 9:56 AM -
You have to add reference to "System.IdentityModel" tooSunday, June 3, 2012 12:22 PM