<?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 SocketException when retrieving Qlik Sense App with ID in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/SocketException-when-retrieving-Qlik-Sense-App-with-ID/m-p/1817871#M15159</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i'm using the qlik sense .net api to connect to an existing/open qlik sense app and select some field values. Example code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;qLoc = Qlik.Engine.Location.FromUri("https://qsserver/hub:443");
qLoc.AsNtlmUserViaProxyAsync(true, null, false).Wait();
qAppId = Qlik.Engine.LocationExtensions.AppWithId(qLoc, "guid", true);
qSession = Qlik.Engine.Session.WithApp(qAppId, Qlik.Engine.SessionType.Default);
qApp = Qlik.Engine.LocationExtensions.App(qLoc, qAppId, qSession, true, false);

qField = qApp.GetField("fieldname", "");
qField.Clear();
qField.Select("value", true, 0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works most of the time, but sometimes an exception is thrown in the 3. line (AppWithId-call):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"System.IO.IOException: Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second /inner exception:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What could possibly cause these exceptions? Is this perhaps a known problem?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 10:57:56 GMT</pubDate>
    <dc:creator>daniellw</dc:creator>
    <dc:date>2021-06-25T10:57:56Z</dc:date>
    <item>
      <title>SocketException when retrieving Qlik Sense App with ID</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SocketException-when-retrieving-Qlik-Sense-App-with-ID/m-p/1817871#M15159</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i'm using the qlik sense .net api to connect to an existing/open qlik sense app and select some field values. Example code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;qLoc = Qlik.Engine.Location.FromUri("https://qsserver/hub:443");
qLoc.AsNtlmUserViaProxyAsync(true, null, false).Wait();
qAppId = Qlik.Engine.LocationExtensions.AppWithId(qLoc, "guid", true);
qSession = Qlik.Engine.Session.WithApp(qAppId, Qlik.Engine.SessionType.Default);
qApp = Qlik.Engine.LocationExtensions.App(qLoc, qAppId, qSession, true, false);

qField = qApp.GetField("fieldname", "");
qField.Clear();
qField.Select("value", true, 0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works most of the time, but sometimes an exception is thrown in the 3. line (AppWithId-call):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"System.IO.IOException: Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second /inner exception:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What could possibly cause these exceptions? Is this perhaps a known problem?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 10:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SocketException-when-retrieving-Qlik-Sense-App-with-ID/m-p/1817871#M15159</guid>
      <dc:creator>daniellw</dc:creator>
      <dc:date>2021-06-25T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: SocketException when retrieving Qlik Sense App with ID</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/SocketException-when-retrieving-Qlik-Sense-App-with-ID/m-p/1817952#M15161</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134754"&gt;@daniellw&lt;/a&gt;&amp;nbsp;Hi, this has been released from spam and is now posted. Sorry about the inconvenience. Sue&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 15:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/SocketException-when-retrieving-Qlik-Sense-App-with-ID/m-p/1817952#M15161</guid>
      <dc:creator>Sue_Macaluso</dc:creator>
      <dc:date>2021-06-25T15:05:58Z</dc:date>
    </item>
  </channel>
</rss>

