Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17907

Power BI : System.InvalidOperationException: Showing a modal dialog box or form when the application

$
0
0

We are facing following error when deployed project in IIS, And it is working fine when ran from visual studio.

Error at when calling below method to get AccessToken

 

return authContext.AcquireToken(this.PowerBiAPI,this.ClientID,newUri(this.RedirectUrl)).AccessToken;

 

Error is :

 

System.InvalidOperationException: Showing a modal dialog box or form when the application isnot running in UserInteractive mode isnot a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task`1 task) at DSLUI.Controllers.BusinessLogic.ReportService.GetAccessToken()

 

Here this.ClientID is generated for App Type: Native

web : https://dev.powerbi.com/apps

If anyone have any idea regarding above error, please help us.


Viewing all articles
Browse latest Browse all 17907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>