Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
v-wuling
Microsoft Employee
Microsoft Employee

how to connect to PowerBI using C#

I follow the article: https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-a-web-app/, download the sample http://go.microsoft.com/fwlink/?LinkId=619279,when I run the project in VS, I get the error :

 

An exception of type 'Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException' occurred in Microsoft.IdentityModel.Clients.ActiveDirectory.dll but was not handled in user code
 
Additional information: AADSTS70000: Authentication failed: Authorization Code is malformed or invalid.
 
Trace ID: b83ddc21-a4e0-4013-80c7-23253397e619
 
Correlation ID: f305fc18-aefd-40d0-a71d-8c278a7abbb5
 
Timestamp: 2016-03-02 08:47:54Z
Who can tell me the solution? Appreciate.
0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.