<?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 Master User Authentication - Power BI Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Master-User-Authentication-Power-BI-Embedded/m-p/741101#M19996</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Master User authentication type to embed my power bi dashboard in my ASP.NET application, so i set up my Power BI Embedding environment through below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/embedsetup/AppOwnsData" target="_self"&gt;https://app.powerbi.com/embedsetup/AppOwnsData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i donwloaded the sample application from Power BI and filled application id, workspace id, report id, Pbi pro account username, Pbi password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once i run the application i get error message "&lt;FONT color="#FF0000"&gt;Object reference not set to an instance of an object&lt;/FONT&gt;" and no access token details is retuned in below line code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential).Result;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i troubleshooted the issue and and tested whether there is a value of the access token or not using below code.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string accesstoken = authenticationResult.AccessToken;&lt;/PRE&gt;&lt;P&gt;The string returned below error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error CS1703: Multiple assemblies with equivalent identity have been imported: 'System.Runtime.dll' and 'System.Runtime.dll'. Remove one of the duplicate references.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the cause of the error message and how to fix it?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 13:28:37 GMT</pubDate>
    <dc:creator>Rawan_ALJabur</dc:creator>
    <dc:date>2019-07-16T13:28:37Z</dc:date>
    <item>
      <title>Master User Authentication - Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Master-User-Authentication-Power-BI-Embedded/m-p/741101#M19996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Master User authentication type to embed my power bi dashboard in my ASP.NET application, so i set up my Power BI Embedding environment through below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/embedsetup/AppOwnsData" target="_self"&gt;https://app.powerbi.com/embedsetup/AppOwnsData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i donwloaded the sample application from Power BI and filled application id, workspace id, report id, Pbi pro account username, Pbi password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once i run the application i get error message "&lt;FONT color="#FF0000"&gt;Object reference not set to an instance of an object&lt;/FONT&gt;" and no access token details is retuned in below line code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;authenticationResult = authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential).Result;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i troubleshooted the issue and and tested whether there is a value of the access token or not using below code.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;string accesstoken = authenticationResult.AccessToken;&lt;/PRE&gt;&lt;P&gt;The string returned below error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error CS1703: Multiple assemblies with equivalent identity have been imported: 'System.Runtime.dll' and 'System.Runtime.dll'. Remove one of the duplicate references.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the cause of the error message and how to fix it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 13:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Master-User-Authentication-Power-BI-Embedded/m-p/741101#M19996</guid>
      <dc:creator>Rawan_ALJabur</dc:creator>
      <dc:date>2019-07-16T13:28:37Z</dc:date>
    </item>
  </channel>
</rss>

