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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.