<?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 Qlik sense .NET SDK (C#) to connect to QlikSense using a web proxy server in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-sense-NET-SDK-C-to-connect-to-QlikSense-using-a-web-proxy/m-p/1821074#M15230</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i've a problem with my app.&lt;/P&gt;&lt;P&gt;it works with every server but there is one that need to connect to vpn and install the proxy (in the windows setting).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for connection:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;public static ILocation DirectRemoteServer(string domain, string user, string password, string machineDomain)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var uri = new Uri(domain);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ILocation location = Qlik.Engine.Location.FromUri(uri);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps),loginCredentials: new NetworkCredential(user,password,machineDomain),certificateValidation: false);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return location;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the app.config file:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;system.net&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;defaultProxy enabled="true"&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;proxy scriptLocation="&lt;A href="http://nome/" target="_blank"&gt;http://nome/&lt;/A&gt;" /&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/defaultProxy&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/system.net&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response:&lt;/P&gt;&lt;P&gt;System.Exception: 'Websocket closed unexpectedly (EndpointUnavailable): '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone has suggetions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 14:30:28 GMT</pubDate>
    <dc:creator>VictorVelasquez96</dc:creator>
    <dc:date>2021-07-09T14:30:28Z</dc:date>
    <item>
      <title>Qlik sense .NET SDK (C#) to connect to QlikSense using a web proxy server</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-sense-NET-SDK-C-to-connect-to-QlikSense-using-a-web-proxy/m-p/1821074#M15230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i've a problem with my app.&lt;/P&gt;&lt;P&gt;it works with every server but there is one that need to connect to vpn and install the proxy (in the windows setting).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for connection:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;public static ILocation DirectRemoteServer(string domain, string user, string password, string machineDomain)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var uri = new Uri(domain);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ILocation location = Qlik.Engine.Location.FromUri(uri);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps),loginCredentials: new NetworkCredential(user,password,machineDomain),certificateValidation: false);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return location;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the app.config file:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;system.net&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;defaultProxy enabled="true"&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;proxy scriptLocation="&lt;A href="http://nome/" target="_blank"&gt;http://nome/&lt;/A&gt;" /&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/defaultProxy&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/system.net&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response:&lt;/P&gt;&lt;P&gt;System.Exception: 'Websocket closed unexpectedly (EndpointUnavailable): '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone has suggetions?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-sense-NET-SDK-C-to-connect-to-QlikSense-using-a-web-proxy/m-p/1821074#M15230</guid>
      <dc:creator>VictorVelasquez96</dc:creator>
      <dc:date>2021-07-09T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik sense .NET SDK (C#) to connect to QlikSense using a web proxy server</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-sense-NET-SDK-C-to-connect-to-QlikSense-using-a-web-proxy/m-p/1826258#M15349</link>
      <description>&lt;P&gt;I'm not sure I understand what you mean by "install the proxy", but you could add a debug console to your code and see if you get some information regarding what goes on from there. Something like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var location = DirectRemoteServer(...);
using (new DebugConsole())
using (var hub = location.Hub())
{
    Console.WriteLine(hub.EngineVersion().ComponentVersion);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 08:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-sense-NET-SDK-C-to-connect-to-QlikSense-using-a-web-proxy/m-p/1826258#M15349</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2021-08-03T08:07:01Z</dc:date>
    </item>
  </channel>
</rss>

