Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 343: // Authentication using master user credentials Line 344: var credential = new UserPasswordCredential(Username, Password); Line 345: authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential).ConfigureAwait(false);Line 346: Line 347: } |
Source File: C:\PowerBI-Developer-Samples\App Owns Data\PowerBIEmbedded_AppOwnsData\Services\EmbedService.cs Line: 345
Hi @kellyzhai
Check your authenticationContext . I think either authenticationContext or ResourceUrl, ApplicationId, credential is beign passing as null
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
27 | |
3 | |
2 | |
2 | |
2 |