<?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: Qlik Sense .NET Framework API Max Sessions Issue in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825829#M15344</link>
    <description>&lt;P&gt;Code example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/NetSDKAPI/Content/Sense_NetSDKAPI/CodeExamples/Sample%20code%20for%20how%20to%20connect%20to%20Qlik%20Sense.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/NetSDKAPI/Content/Sense_NetSDKAPI/CodeExamples/Sample%20code%20for%20how%20to%20connect%20to%20Qlik%20Sense.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Exporting Certs&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-admin/May2021/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/export-certificates.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-admin/May2021/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/export-certificates.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other info:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qalyptus.com/blog/the-complete-guide-to-understanding-qlik-sense-certificates" target="_blank"&gt;https://www.qalyptus.com/blog/the-complete-guide-to-understanding-qlik-sense-certificates&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2021 19:43:04 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2021-07-30T19:43:04Z</dc:date>
    <item>
      <title>Qlik Sense .NET Framework API Max Sessions Issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825256#M15324</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; We are using the Qlik Sense .NET Framework API to automate Qlik Sense Application Executions.&lt;BR /&gt;We have it working fine, but the user that we are using to authenticate with will get the&lt;BR /&gt;Multiple Parralell sessions error. This is simply getting application list and variables for a selected application.&lt;BR /&gt;I am using the ILocation class to do the app query and it works fine. I also am doing a Dispose on the object after use.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; The issue is this: After so many calls to the API, we will get the Max Sessions error, like the Qlik server is not&lt;BR /&gt;releasing the connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Now the question: How can I get Qlik Sense to release the connection when I am done with the ILocation interface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the code for getting the app list objects:&lt;/P&gt;&lt;P&gt;ILocation _location = null;&lt;/P&gt;&lt;P&gt;List&amp;lt;IAppIdentifier&amp;gt; _allApps = null;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; _location = Qlik.Engine.Location.FromUri(new Uri($"wss://{qlikServer}"));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; NetworkCredential cred = new System.Net.NetworkCredential(userLoginName, password, "DOMAIN");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; _location.AsNtlmUserViaProxy(false, cred, true);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; //Do operation (In this case get the app list)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; _allApps = new List&amp;lt;IAppIdentifier&amp;gt;(_location.GetAppIdentifiers());&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; //Handle Exception&lt;BR /&gt;}&lt;BR /&gt;finally&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(_location != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _location.Dispose();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;This example is getting the ap list from the location.&amp;nbsp; But if I did this a few more times, it will give the Max Session error like the WebSocket is not releasing its connection.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Ben&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825256#M15324</guid>
      <dc:creator>benholcomb007</dc:creator>
      <dc:date>2021-07-28T19:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense .NET Framework API Max Sessions Issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825643#M15335</link>
      <description>&lt;P&gt;The "slot" is counted for a few minutes even after dispose.&amp;nbsp; Not generally an issue for real people moving between machines, but can be a problem for programs repeatedly opening/closing.&amp;nbsp; Here are a couple of suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Don't release the Location. Instead cache it and reuse it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use a certificate connection to connect directly to the engine rather than the proxy.&amp;nbsp; The engine connection doesn't have the connection limit problems.&amp;nbsp; Using certificate may not match your security requirements or use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 23:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825643#M15335</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-07-29T23:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense .NET Framework API Max Sessions Issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825812#M15341</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;How should we go about using the cert in code?&lt;/P&gt;&lt;P&gt;Is there an article/link for setting this up on the Qlik Server?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Ben&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825812#M15341</guid>
      <dc:creator>benholcomb007</dc:creator>
      <dc:date>2021-07-30T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense .NET Framework API Max Sessions Issue</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825829#M15344</link>
      <description>&lt;P&gt;Code example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/NetSDKAPI/Content/Sense_NetSDKAPI/CodeExamples/Sample%20code%20for%20how%20to%20connect%20to%20Qlik%20Sense.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/NetSDKAPI/Content/Sense_NetSDKAPI/CodeExamples/Sample%20code%20for%20how%20to%20connect%20to%20Qlik%20Sense.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Exporting Certs&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-admin/May2021/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/export-certificates.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-admin/May2021/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/export-certificates.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other info:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.qalyptus.com/blog/the-complete-guide-to-understanding-qlik-sense-certificates" target="_blank"&gt;https://www.qalyptus.com/blog/the-complete-guide-to-understanding-qlik-sense-certificates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 19:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-Framework-API-Max-Sessions-Issue/m-p/1825829#M15344</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-07-30T19:43:04Z</dc:date>
    </item>
  </channel>
</rss>

