<?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 Re: App owns data AAD accessToken run in Object reference not set to an instance of an object. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/App-owns-data-AAD-accessToken-run-in-Object-reference-not-set-to/m-p/887970#M21882</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170919" data-lia-user-login="kellyzhai" class="lia-mention lia-mention-user"&gt;kellyzhai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check yo&lt;FONT color="#000000"&gt;ur&amp;nbsp;&lt;STRONG&gt;authenticationContext . &lt;/STRONG&gt;I think either&amp;nbsp;&lt;STRONG&gt;authenticationContext &lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;ResourceUrl, ApplicationId, credential &lt;/STRONG&gt;is beign passing as &lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 13:09:57 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2020-01-02T13:09:57Z</dc:date>
    <item>
      <title>App owns data AAD accessToken run in Object reference not set to an instance of an object.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/App-owns-data-AAD-accessToken-run-in-Object-reference-not-set-to/m-p/878926#M21767</link>
      <description>&lt;H1&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers" target="_blank" rel="noopener"&gt;Follow the instuction &lt;/A&gt;&lt;/H1&gt;&lt;H1&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers&lt;/A&gt;&lt;/H1&gt;&lt;H1&gt;&lt;A href="https://aka.ms/embedsetup/AppOwnsData" target="_blank" rel="noopener"&gt;use Embedding setup tool to download the sample code, run below error all the time.&lt;/A&gt;&lt;/H1&gt;&lt;H1&gt;Server Error in '/' Application.&lt;/H1&gt;&lt;HR /&gt;&lt;H2&gt;&lt;I&gt;Object reference not set to an instance of an object.&lt;/I&gt;&lt;/H2&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;STRONG&gt;Description:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Exception Details:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Source Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;Line 343:                // Authentication using master user credentials
Line 344:                var credential = new UserPasswordCredential(Username, Password);
&lt;FONT color="red"&gt;Line 345:                authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ApplicationId, credential).ConfigureAwait(false);&lt;/FONT&gt;Line 346:
Line 347:            }&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;BR /&gt;&lt;STRONG&gt;Source File:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;C:\PowerBI-Developer-Samples\App Owns Data\PowerBIEmbedded_AppOwnsData\Services\EmbedService.cs&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; Line:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;345&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 15:03:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/App-owns-data-AAD-accessToken-run-in-Object-reference-not-set-to/m-p/878926#M21767</guid>
      <dc:creator>kellyzhai</dc:creator>
      <dc:date>2019-12-18T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: App owns data AAD accessToken run in Object reference not set to an instance of an object.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/App-owns-data-AAD-accessToken-run-in-Object-reference-not-set-to/m-p/887970#M21882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170919" data-lia-user-login="kellyzhai" class="lia-mention lia-mention-user"&gt;kellyzhai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check yo&lt;FONT color="#000000"&gt;ur&amp;nbsp;&lt;STRONG&gt;authenticationContext . &lt;/STRONG&gt;I think either&amp;nbsp;&lt;STRONG&gt;authenticationContext &lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;ResourceUrl, ApplicationId, credential &lt;/STRONG&gt;is beign passing as &lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/App-owns-data-AAD-accessToken-run-in-Object-reference-not-set-to/m-p/887970#M21882</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2020-01-02T13:09:57Z</dc:date>
    </item>
  </channel>
</rss>

