Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.IdentityModel.Selectors.UserNamePasswordValidator does not exist [closed]

Tags:

c#

.net

I am trying to derive a class from System.IdentityModel.Selectors.UserNamePasswordValidator. However if I add a reference to System.IdentityModel.Selectors I still can't add System.IdentityModel.Selectors.UserNamePasswordValidator as it tells me it does not exist in the namespace. Microsofts own documentation says it is in there and there are many examples on the web using this class, however it just refuses to recognise it on my machine......

like image 375
coolblue2000 Avatar asked Feb 18 '26 14:02

coolblue2000


1 Answers

I have found the issue. I needed to also add a reference to System.IdentityModel.

like image 145
coolblue2000 Avatar answered Feb 21 '26 03:02

coolblue2000