Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
oz_moyal
Creator
Creator

Connection issue to qliksense using .Net sdk

Asp .net webform project using current  qlik sense .Net sdk

Getting error:
Ticket retrieved, but unable to establish websocket connection: Unable to connect to the remote server

my code:

 

 ILocation location = Qlik.Engine.Location.FromUri("https://....");

            location.VirtualProxyPath = "qlikdemo";
            location.AsNtlmUserViaProxy(proxyUsesSsl: true);
            location.AsNtlmUserViaProxy();

             using (IHub hub = location.Hub())

                {

                    Literal1.Text = hub.EngineVersion().ComponentVersion;

                }

 

 

Comments:
* I am able to open qliksense using the URL in browser on same station, i do not need to login.  I can view qlik and anything. but i'm not admin on qlik. 

* My code run from other windows server, it is not same server.

Any help apprecaited as is tuck on this for few days... : (

@Øystein_Kolsrud 

1 Reply
Øystein_Kolsrud
Employee
Employee

Have you tried to use a debug console? You might get more information there. Something like this:

using (new DebugConsole())
using (IHub hub = location.Hub())
{
    Literal1.Text = hub.EngineVersion().ComponentVersion;
}

That will write extra output to stdout. You can provide a TextWriter instance to the DebugConsole instance if you want to write to a file instead.