Skip to content

DiscoverOnlineOrganizationsAsync fails with tokenCacheStorePath when AppDomain.CurrentDomain.FriendlyName has invalid characters #406

Closed
@cupacheeno

Description

@cupacheeno

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions