Description
I have stable WPF .NET 8 app. After upgrading System.DirectoryServices.AccountManagement from 8.0.1 to 9.0 I got this error:
System.UriFormatException: 'Invalid URI: The hostname could not be parsed.'
Reproduction Steps
var ctx = new PrincipalContext(ContextType.Domain);
var usr = UserPrincipal.FindByIdentity(ctx, IdentityType.SamAccountName, "myname");
var test = usr.GetGroups();
Expected behavior
no exception
Actual behavior
exception
Regression?
Worked for couple years now.
Known Workarounds
Downgrade to 8.0.1 solves this immediately.
Configuration
Windows 10 Enterprise with login via LDAP.
Other information
No response