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