Closed
Description
Using the Service Client DiscoverOnlineOrganizationsAsync static method with the optional parameter tokenCacheStorePath will fail when the AppDomain.CurrentDomain.FriendlyName contains invalid characters.
For example.
Microsoft.PowerPlatform.Dataverse.Client = 1.1.14
Visual Studio Project = VSTO Add-In
The call will fail in the Microsoft.PowerPlatform.Dataverse.Client.Auth.TokenCache.FileBackedTokenCacheHints.FileBackedTokenCacheHints method as it attempts to use the AppDomain.CurrentDomain.FriendlyName
Unfortunately this property is not an editable property and as such in this particular instance would be
"Project.vsto|vstolocal" and throw an exception.