<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Power BI Embedded hangs when getting dashboard, reports, etc. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-hangs-when-getting-dashboard-reports-etc/m-p/495129#M15154</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything was working fine until a few days ago. From what I can tell nothing has changed in the code, but we can no longer retrieve dashboards, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything that accesses the client object below just hangs. No error messages or return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var credential = new UserPasswordCredential(PowerBiUsername, PowerBiPassword);
var authenticationContext = new AuthenticationContext(PowerBiAuthenticationUrl);

Task&amp;lt;AuthenticationResult&amp;gt; authenticationResult = authenticationContext.AcquireTokenAsync(PowerBiSecurityTokenUrl, PowerBiClientId, credential);

authenticationResult.Wait();

if (authenticationResult == null)
{
   return View(new EmbedConfig()
   {
      ErrorMessage = "Authentication Failed."
   });
}

var tokenCredentials = new TokenCredentials(authenticationResult.Result.AccessToken, "Bearer");

using (var client = new PowerBIClient(new Uri(PowerBiUri), tokenCredentials))
{
   Task&amp;lt;ODataResponseListDashboard&amp;gt; dashboards = client.Dashboards.GetDashboardsInGroupAsync(PowerBiGroupId);

   dashboards.Wait();  // HANGS HERE.

   var dashboard = dashboards.Result.Value.FirstOrDefault();
   ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 13:54:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-21T13:54:34Z</dc:date>
    <item>
      <title>Power BI Embedded hangs when getting dashboard, reports, etc.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-hangs-when-getting-dashboard-reports-etc/m-p/495129#M15154</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything was working fine until a few days ago. From what I can tell nothing has changed in the code, but we can no longer retrieve dashboards, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything that accesses the client object below just hangs. No error messages or return.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var credential = new UserPasswordCredential(PowerBiUsername, PowerBiPassword);
var authenticationContext = new AuthenticationContext(PowerBiAuthenticationUrl);

Task&amp;lt;AuthenticationResult&amp;gt; authenticationResult = authenticationContext.AcquireTokenAsync(PowerBiSecurityTokenUrl, PowerBiClientId, credential);

authenticationResult.Wait();

if (authenticationResult == null)
{
   return View(new EmbedConfig()
   {
      ErrorMessage = "Authentication Failed."
   });
}

var tokenCredentials = new TokenCredentials(authenticationResult.Result.AccessToken, "Bearer");

using (var client = new PowerBIClient(new Uri(PowerBiUri), tokenCredentials))
{
   Task&amp;lt;ODataResponseListDashboard&amp;gt; dashboards = client.Dashboards.GetDashboardsInGroupAsync(PowerBiGroupId);

   dashboards.Wait();  // HANGS HERE.

   var dashboard = dashboards.Result.Value.FirstOrDefault();
   ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:54:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-hangs-when-getting-dashboard-reports-etc/m-p/495129#M15154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded hangs when getting dashboard, reports, etc.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-hangs-when-getting-dashboard-reports-etc/m-p/495321#M15162</link>
      <description>&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There appears to be an issue with the latest version of "Microsoft.Rest.ClientRuntime". When I reverted to "12.3.12" it continued working. Very frustrating.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-hangs-when-getting-dashboard-reports-etc/m-p/495321#M15162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T17:28:43Z</dc:date>
    </item>
  </channel>
</rss>

