<?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: .NET SDK - Sharing session in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1520370#M9698</link>
    <description>&lt;P&gt;This might not solve your problem, but it seems that you get the behavior you are looking for if you connect using NTLM through the proxy. So this configuration should make your SDK selections visible in the client:&lt;/P&gt;
&lt;PRE&gt;senseLocation.AsNtlmUserViaProxy();
var appIdentifier = ...
var senseSession = Session.WithApp(appIdentifier, SessionType.Default);
var appInstance = senseLocation.App(appIdentifier, senseSession);&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Dec 2018 11:47:41 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2018-12-13T11:47:41Z</dc:date>
    <item>
      <title>.NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/40617#M624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to share a session between a browser and and the .NET SDK, so that selections are mirrored on both ends. I'm connetcing to a QlikSense server using a certificate, and o like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15238826689525106" jivemacro_uid="_15238826689525106" modifiedtitle="true"&gt;
&lt;P&gt;//Connect to QlikSense server&lt;/P&gt;
&lt;P&gt;senseLocation.AsDirectConnection(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "myuserdir", //User directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "administrator", //UserID (this user is RootAdmin)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x509coll //Certificate&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;var appIdentifier = ...&lt;/P&gt;
&lt;P&gt;var senseSession = Session.WithApp(appIdentifier, SessionType.Default);&lt;/P&gt;
&lt;P&gt;var appInstance = senseLocation.App(appIdentifier, senseSession);&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;then I'm applying some selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15238826742471419 jive_text_macro" jivemacro_uid="_15238826742471419"&gt;
&lt;P&gt;app.GetField("Foo").Select("Bar");&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, the selection does not get applyed on the broser side. And likewise, if I apply some selections using the browser they are not applied when querying data via the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: more precisely: sometimes nothing happens, other times the last lines causes this error on the client session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-04-16 14_48_38-TEST _ Fogli - Qlik Sense.png" class="jive-image image-1" src="/legacyfs/online/199747_2018-04-16 14_48_38-TEST _ Fogli - Qlik Sense.png" style="height: 210px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which translates more or less to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;An error occurred&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Connection to the QlikSense engine failed due to unspecified reasons&lt;/P&gt;
&lt;P&gt;Refresh your browser or contact a system administrator&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 12:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/40617#M624</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2018-04-16T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/40618#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! FYI: There's another thread on a similar topic here: &lt;A href="https://community.qlik.com/message/1491370"&gt;Re: Net SDK session shared with client&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 08:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/40618#M625</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-05-25T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1514114#M9572</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have exactly the same problem,&lt;/P&gt;&lt;P&gt;Any solution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 10:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1514114#M9572</guid>
      <dc:creator>david7gauthier</dc:creator>
      <dc:date>2018-11-29T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1520370#M9698</link>
      <description>&lt;P&gt;This might not solve your problem, but it seems that you get the behavior you are looking for if you connect using NTLM through the proxy. So this configuration should make your SDK selections visible in the client:&lt;/P&gt;
&lt;PRE&gt;senseLocation.AsNtlmUserViaProxy();
var appIdentifier = ...
var senseSession = Session.WithApp(appIdentifier, SessionType.Default);
var appInstance = senseLocation.App(appIdentifier, senseSession);&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Dec 2018 11:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1520370#M9698</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-12-13T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1523846#M9741</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;But i have a time out error.&lt;/P&gt;&lt;P&gt;please see the attached image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-12-25 13_04_00-Microsoft Visual Studio.png" style="width: 695px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2603i39A1960B2117615B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-12-25 13_04_00-Microsoft Visual Studio.png" alt="2018-12-25 13_04_00-Microsoft Visual Studio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the server is like this: "&lt;A href="http://my-server.home.local:4747" target="_blank"&gt;http://my-server.home.local:4747&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 12:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1523846#M9741</guid>
      <dc:creator>david7gauthier</dc:creator>
      <dc:date>2018-12-25T12:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1524251#M9743</link>
      <description>&lt;P&gt;You shouldn't include the port number if you want to go through the proxy. By adding the port 4747 you are directing the traffic directly to the engine instead.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 07:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1524251#M9743</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-12-27T07:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1526400#M9778</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;It works very well !!!&lt;/P&gt;&lt;P&gt;But, do you know why we cannot connect with AsDirectConnection() with a certificate?&lt;/P&gt;&lt;P&gt;My code is like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 985px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3054iD023A5A5B30AD48E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the server is like this: "&lt;/SPAN&gt;&lt;A href="http://my-server.home.local:4747/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://my-server.home.local:4747&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have not error of compilation neither execution:&lt;/P&gt;&lt;P&gt;But I cannot connect to the Engine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 508px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3055i38F4CED3AEE1DFCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 13:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1526400#M9778</guid>
      <dc:creator>david7gauthier</dc:creator>
      <dc:date>2019-01-04T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1527095#M9791</link>
      <description>&lt;P&gt;Have you checked your firewall settings? Perhaps the port is blocked?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1527095#M9791</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-01-07T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1527678#M9810</link>
      <description>&lt;P&gt;Thank you again for your response.&lt;/P&gt;&lt;P&gt;To be sure that the port 4747 is Open, i turned off the firewall.&lt;/P&gt;&lt;P&gt;As you can see in the image bellow the port 4747 is open on my server&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4747-port-open.png" style="width: 564px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3288i07A62E748728B0AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="4747-port-open.png" alt="4747-port-open.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I retried to connect from the server where Qlik Sense is installed (without certification) using the code bellow , but I have steel the same error:&lt;/P&gt;&lt;P&gt;private IApp ConnectWithDirectConnection(string server, string qlikSenseAppId)&lt;BR /&gt;{&lt;BR /&gt;IApp app = null;&lt;/P&gt;&lt;P&gt;var uri = new Uri(server);&lt;BR /&gt;ILocation location = Qlik.Engine.Location.FromUri(uri);&lt;BR /&gt;// Defining the location as a direct connection to Qlik Sense Server&lt;BR /&gt;location.AsDirectConnection(Environment.UserDomainName, Environment.UserName);&lt;BR /&gt;location.IsVersionCheckActive = false;&lt;/P&gt;&lt;P&gt;IAppIdentifier appId = location.AppWithIdOrDefault(&lt;SPAN&gt;qlikSenseAppId&lt;/SPAN&gt;);&lt;BR /&gt;ISession session = Session.WithApp(appId, SessionType.Default);&lt;BR /&gt;IHub hub = LocationExtensions.Hub(location, session);&lt;BR /&gt;app = hub.OpenApp(appId.AppId);&lt;/P&gt;&lt;P&gt;app.GetField("Region").Select("Africa");&lt;BR /&gt;return app;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;When&amp;nbsp;I do not use 'session' ==&amp;gt; "&lt;SPAN&gt;IHub hub = LocationExtensions.Hub(location);"&amp;nbsp;&lt;/SPAN&gt;I do not have the error but when I make selections nothing happens in the application (&lt;SPAN&gt;app.GetField("Region").Select("Africa"); ==&amp;gt; no effect in UI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1527678#M9810</guid>
      <dc:creator>david7gauthier</dc:creator>
      <dc:date>2019-01-08T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1562477#M10247</link>
      <description>&lt;P&gt;I did some more research on this, and it looks like the system actively blocks you from connecting to a client session when you are using direct connection to the engine. It seems like there is some security mechanism in place that prevents it. If you try to access an active client session using direct connection, then the client will receive these messages on its web socket:&lt;/P&gt;
&lt;PRE&gt;{"jsonrpc":"2.0","method":"OnClosed","params":{"qSessionState":"SESSION_ERROR_SECURITY_HEADER_CHANGED"}}
{"jsonrpc":"2.0","method":"OnEngineWebsocketFailed","params":{"severity":"fatal","timestamp":"2019-03-28T13:55:10.9758005Z","message":"Connection to Qlik service failed, shutting down"}}&lt;/PRE&gt;
&lt;P&gt;And you probably want to go through the proxy anyway when you connect to the client session as in a multi node system, you typically don't know which engine node the client session ends up on.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 14:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1562477#M10247</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-03-28T14:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK - Sharing session</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1584946#M10647</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;thank you very much for this valuable information.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 07:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-Sharing-session/m-p/1584946#M10647</guid>
      <dc:creator>david7gauthier</dc:creator>
      <dc:date>2019-05-27T07:58:57Z</dc:date>
    </item>
  </channel>
</rss>

