Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

dgoehler
New Contributor III

Trouble Connecting via QlikSense.NetSDK

Hi,

I try to connect via QlikSense.NetSDK to the Qlik Sense Server:

Uri uri = new Uri("https://<qliksense-server>");

ILocation remoteQlikSenseLocation = Qlik.Engine.Location.FromUri(uri);

remoteQlikSenseLocation.AsNtlmUserViaProxy();

           

foreach (IAppIdentifier appIdentifier in remoteQlikSenseLocation.GetAppIdentifiers())

{

  Console.WriteLine(appIdentifier.AppName);

}


remoteQlikSenseLocation.GetAppIdentifiers() throws an Exception:

An unhandled exception of type 'System.IO.IOException' occurred in Qlik.Engine.dll

Additional information: Error in handshake due to an unexpected packet format.

Help [1] and the existing threads did not help me. I can connect to Qlik Sense Desktop via Qlik.Engine.Location.Local; without any problem.

Does connecting to Qlik Sense Server worked for anyone?

What do I wrong?

Best regards,

  Daniel

[1]:

https://help.qlik.com/sense/en-us/developer/#../Subsystems/NetSdk/Content/HowTos/NetSdk_HowTo_Locate...

https://help.qlik.com/sense/en-us/developer/#../Subsystems/NetSdk/Content/HowTos/NetSdk_HowTo_Access...

3 Replies
Not applicable

Re: Trouble Connecting via QlikSense.NetSDK

Hi,

It is probably a problem with your Qlik Sense Server configuration.

Common problems are :

  • "websocket white list", where you should add your domain (example: mydomain.com) or ip-adress of the .Net SDK clients.
  • firewall ports

Please read the manual and verify your configuration .

Best regards

Lars-Göran Book

dgoehler
New Contributor III

Re: Trouble Connecting via QlikSense.NetSDK

Hi,

I added my local hostname to the Websocket origin white list. The firewall is and was off. Did changed anything.

What is the service (URI) to connect with the QlikSense.NetSDK?


I tried every port:


As far as I can tell the documentation didn't say.


Best regards,

Daniel

Not applicable

Re: Trouble Connecting via QlikSense.NetSDK

Hi,

If you are connecting with ssl:

https://qliksense.domain.local

or

wss://qliksense.domain.local

if you are not using ssl (remember to set allow http in the proxy configuration)

http:////qliksense.domain.local

or

ws:////qliksense.domain.local

Best regards

Lars-Göran Book

Community Browser