Yes, I rebooted my Win11 PC and the problem persists.
See attached image of the code ... I seem my claims (189) for user context. The first "test" loop always returns false, never finds the role define in my sitemap (i.e. "Booking Reader"). The second test loop I tried to get the "string" version of the role and get an exception "The trust relationship between this workstation and the primary domain failed."??
When I do a "net user myusername /domain I see all my roles and the do matchup to the roles defined in my sitemap, yet Context.User.IsInRole always returns false?? My local PC's DNS server entries are correct (not changed) so I have no idea why this is failing??
Rob.