0

I've researched these other two threads that I thought might be related but there issues is different:

Why does IsInRole always return false?

IsInRole problem

I'm checking against a role (string) "DomainName\Booking Reader" for Context.User which I verified exists via CMD window running "net user theusername /domain" which returns a list of Global Group Memberships where "Booking Reader" is in that list.

However when I step thru my code Context.User.IsInRole("DomainName\Booking Reader") it returns FALSE?

This ONLY happens when I'm debugging from within Visual Studio 2022, when I access the production website from my dev PC my role is working correctly.

I had no issues with VS 2022 debug sessions about two weeks ago when running on the same PC but under Windows 10 ... I recently upgraded to Windows 11 and now I have this issue.

Very puzzled? Any suggestions?

Rob Ainscough
  • 576
  • 5
  • 14

0 Answers0