<?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: Authentication error with API v2 in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-error-with-API-v2/m-p/1035527#M23191</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223439"&gt;@carlosmunoz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The issue is not caused by the&amp;nbsp;new API v.3.11.1.&amp;nbsp;&lt;SPAN&gt;In the next release of the framework the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.net.securityprotocoltype(v=vs.110).aspx" target="_blank" rel="noopener noreferrer"&gt;SecurityProtocolType&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;enumerator got extended with the newer Tls protocols, so if your application can use th 4.5 version you can also use Tls11 and Tls12. So if y&lt;/SPAN&gt;ou are on .net framework 4.5,change&amp;nbsp;the SecurityProtocol .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | 
                                       SecurityProtocolType.Tls11 |
                                       SecurityProtocolType.Tls12;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 06:13:25 GMT</pubDate>
    <dc:creator>michaelx2</dc:creator>
    <dc:date>2020-04-20T06:13:25Z</dc:date>
    <item>
      <title>Authentication error with API v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-error-with-API-v2/m-p/1030956#M23160</link>
      <description>&lt;P&gt;We have Power BI embedded reports in a .NET web application running on framework 4.5.2 and with Power BI API 2.4&lt;/P&gt;&lt;P&gt;Since yesterday those reports start to failed. The error is in the authentication process with the API, specifically on this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is not giving much information: "The underlying connection was closed: An unexpected error occurred on a send."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to setup a project with the new API v.3.11.1 and the exact same code is running without any issues, the problem is that we will need to updagrade the whole project to framework 4.7.2 and that could take a considerable effort. Are you aware of any possible workaround to keep using v2 until we succesfully upgrade the project?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 20:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-error-with-API-v2/m-p/1030956#M23160</guid>
      <dc:creator>carlosmunoz</dc:creator>
      <dc:date>2020-04-16T20:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error with API v2</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-error-with-API-v2/m-p/1035527#M23191</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223439"&gt;@carlosmunoz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The issue is not caused by the&amp;nbsp;new API v.3.11.1.&amp;nbsp;&lt;SPAN&gt;In the next release of the framework the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.net.securityprotocoltype(v=vs.110).aspx" target="_blank" rel="noopener noreferrer"&gt;SecurityProtocolType&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;enumerator got extended with the newer Tls protocols, so if your application can use th 4.5 version you can also use Tls11 and Tls12. So if y&lt;/SPAN&gt;ou are on .net framework 4.5,change&amp;nbsp;the SecurityProtocol .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | 
                                       SecurityProtocolType.Tls11 |
                                       SecurityProtocolType.Tls12;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 06:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-error-with-API-v2/m-p/1035527#M23191</guid>
      <dc:creator>michaelx2</dc:creator>
      <dc:date>2020-04-20T06:13:25Z</dc:date>
    </item>
  </channel>
</rss>

