Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

yamananalytic
Contributor II

How Can I Connect to Qlik Sense Server using SDK

string strUri = "https://desktop-dpummb2";

            Uri uri = new Uri(strUri);

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

            qsLocation.VirtualProxyPath = "static";

            qsLocation.AsStaticHeaderUserViaProxy("yaman", "X1-Qlik-Session", false);

     //       qsLocation.IsVersionCheckActive = false;

            using (IHub MyHub = qsLocation.Hub())

            {

when using line is compiled this i get this error :

13.png

1 Solution

Accepted Solutions
yamananalytic
Contributor II

Re: How Can I Connect to Qlik Sense Server using SDK

I found the solution which is

qsLocation.AsNtlmUserViaProxy(false, new System.Net.NetworkCredential("yaman", "123", "desktop-dpummb2"));

Thanks Mr. Kolsrud

2 Replies
Employee
Employee

Re: How Can I Connect to Qlik Sense Server using SDK

In your call to "AsStaticHeaderViaProxy" you are setting the argument "proxyUsesSsl" to false, but your URL seems to indicate that you are using https. You should probably set that argument to "true" instead.

yamananalytic
Contributor II

Re: How Can I Connect to Qlik Sense Server using SDK

I found the solution which is

qsLocation.AsNtlmUserViaProxy(false, new System.Net.NetworkCredential("yaman", "123", "desktop-dpummb2"));

Thanks Mr. Kolsrud

Community Browser