Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

0

Power bi embedded keeps crashing for no apparent reason

Our app has if, it was pre-working until yesterday
Today suddenly and without any changes it stopped working
Reports appear but then suddenly stops working. 

ASP.NET application published on Azure with Power BI Embedded

Status: Delivered

Hi  @DaniloM 

I am so glad that you have found the workaround ! I will change the status to "Delivered" . Thanks for your sharing .

 

Best Regards,
Community Support Team _ Ailsa Tao

Comments
DaniloM
Regular Visitor

stop working for a while and then it starts working again and then freezes again. it works in fits and starts

v-yetao1-msft
Community Support
Status changed to: Needs Info

Hi @DaniloM 

I haven't seen anyone else with feedback on similar issues so far, is your app displaying properly now ? You mentioned it is an ASP.NET application that published from Azure , can you explain it in detail ?

 

Best Regards,
Community Support Team _ Ailsa Tao

DaniloM
Regular Visitor

I think I've found the problem
The following exception is raised:

" Your app has been throttled by AAD due to too many requests. To avoid this, cache your tokens see https://aka.ms/msal-net-throttling."

 

the problem is due to the authentication which I did in this way:

 

    Public Async Function CreazioneClient() As Task(Of PowerBIClient)

        Dim Client As PowerBIClient = Nothing

 

        Try

 

            If IsNothing(_TokenCredenziali) Then

 

                Dim authenticationResult As AuthenticationResult = Nothing

                Dim clientApp As IPublicClientApplication = PublicClientApplicationBuilder.Create(_ClientID).WithAuthority(_DatiPowerBi.AuthorityUrl).Build

                authenticationResult = Await clientApp.AcquireTokenByUsernamePassword(m_scope, _UserName, _Password).ExecuteAsync

 

                If IsNothing(authenticationResult) Then

                    ' errore

                    _Errore2 = " Errore autenticazione"

                    Return Nothing

                End If

 

                _AccessToken = authenticationResult.AccessToken

 

                _TokenCredenziali = New TokenCredentials(authenticationResult.AccessToken, "Bearer")

 

            End If

 

            Client = New PowerBIClient(New Uri(_DatiPowerBi.ApiEndPointUri), _TokenCredenziali)

 

            Return Client

 

        Catch ex As Exception

            _Errore2 = CompilaErrore(ex.Message)

            Return Nothing

        End Try

 

    End Function

v-yetao1-msft
Community Support
Status changed to: Delivered

Hi  @DaniloM 

I am so glad that you have found the workaround ! I will change the status to "Delivered" . Thanks for your sharing .

 

Best Regards,
Community Support Team _ Ailsa Tao