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

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
Anonymous
Not applicable
Author

I found the solution which is

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

Thanks Mr. Kolsrud

View solution in original post

2 Replies
Øystein_Kolsrud
Employee
Employee

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.

Anonymous
Not applicable
Author

I found the solution which is

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

Thanks Mr. Kolsrud