0
IISでプロジェクトを展開すると次のエラーが発生し、Visual Studioから実行したときに正常に動作しています。 AccessToken電力BI:System.InvalidOperationException:アプリケーションが実行されていないときにモーダルダイアログボックスまたはフォームを表示
return authContext.AcquireToken(this.PowerBiAPI, this.ClientID, new Uri(this.RedirectUrl)).AccessToken;
エラーを取得する方法を下回る呼び出すときに
エラーは次のとおりです。this.ClientIDアプリケーションタイプのために生成される。ここ
System.InvalidOperationException:
Showing a modal dialog box or form when the application is not running in
UserInteractive mode is not 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()
:ネイティブ
ウェブ:https://dev.powerbi.com/apps
上記のエラーについてご意見がありましたら、私たちはlpです。
解決策を返信して投稿してくれてありがとう。 –