Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17890

PowerBiClient object accessing exception

$
0
0

Hi

 

I am facing the  exception while creating the PowerBiClient Object.

 

Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.

 

By looking the solution in one of the forum , i have added the redirecting dependecy aw well.  but still facing this issue.

 

Task<AuthenticationResult> tokenAccessKey = Program.GetToken();
var tokenCredentials = new TokenCredentials(tokenAccessKey.Result.AccessToken, tokenAccessKey.Result.AccessTokenType);

using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))

{

}

 

Questions:  is these below making this problem

1. What should be my ApiUrl ? ex: "https://app.powerbi.com/"

2. my tokenCredentials object's Client ID and Tenent Id returning null. event though the tokenAccessKey  is valid

 

 

Power BI client issue.png


Viewing all articles
Browse latest Browse all 17890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>