Forum Discussion
Embed Power BI Report on Entitiframe work MVC5
Does anyone can help or advice how to embed the powerbi report on ASP.net MVC Apps ?
I followed the below instruction but it still not working.
https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers
Here is my error message "Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'"
4 Replies
- rsaguiarNew Member
Are you using App Owns Data or User Owns Data Samples?
Did you see this link instruction https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization?Maybe could help you.
- tolaRegular Visitor
Thanks for your advice I been followed with that instruction, but it working with Native apps only, my current apps in Webapps/API.
Do you have any more advice, ?
- v-jiascu-msftMicrosoft Employee
Hi tola,
I would suggest you register your app here. It's clearer. Or you can refer to creating-application-client-id-client-secret-microsoft-azure-new-portal/ for the new method.
Best Regards,
Dale
- v-jiascu-msftMicrosoft Employee
Hi tola,
Did you register your application in the Azure? You will find out the client_secret after that. Please refer to power-bi/developer/register-app.
Did you update the config file? Please refer to power-bi/developer/embed-sample-for-customers#embed-your-content-using-the-sample-application.
Best Regards,
Dale