Qlik Community

Ask a Question

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik Insider - Maximize your investment, Join this webinar, May 26th. Register Today
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... : (

@yko 

1 Reply
yko
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.