PowerPlatform-DataverseServiceClient icon indicating copy to clipboard operation
PowerPlatform-DataverseServiceClient copied to clipboard

Microsoft.PowerPlatform.Dataverse.Client with Visual Studio 2022 extension (VSIX)

Open phuocle opened this issue 5 months ago • 1 comments

I develop VSIX extension, in my extension I add ref Microsoft.PowerPlatform.Dataverse.Client from NuGet ver 1.2.9 In code, when i try

var connectionString = "AuthType=ClientSecret;Url=.....";
var ServiceClient = new ServiceClient(connectionString); //exception throw here in my VSIX extension (/rootsuffix Exp)

it throw exception as picture bellow

Image

how i can check and fix?

Thank you

phuocle avatar Aug 07 '25 09:08 phuocle

That type of error would occur if your using reflection loading as the Ilogger is present on the contract, but not required. when a reflection load is used, you would need to pass a null for the Ilogger.

MattB-msft avatar Aug 12 '25 18:08 MattB-msft