I am developing the Embedded Power BI in my application.When I am accessing the reports from my power BI Account. I am unable to get the exception as
REST API Azure Error: 'Microsoft.Rest.HttpOperationException' Operation returned an invalid status code 'Un Authorized'.
I have gave view permissions to my app in Azure portal. I thought there is no wrong with my code. I thought it's related to permissions of my app in Azure portal. I have missed some where else. Please guide me.
for adding permission I have followed below link
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-register-app/
Here is an update:
I have created new project in https://dev.powerbi.com/apps and choose view dashboard and reports then i am able to get the dashboard and reports but If i add permission to the existing project in https://portal.azure.com/ .I am getting the exception.I don't ,why i am getting exception as Unauthorised with my existing account. Can any one please help me out from this problem.
Thanks in advance.