Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
bekahbeets
Creator
Creator

System.Aggregation error when connecting to qlik server via .net Sdk

I have tried several methods and versions of methods to connect to the qlik server from the .Net SDK commands... I always get this error...

errorPic2.PNG

Here is the code:

  static void Main(string[] args)

        {

            var uri = new Uri("https://aserver.onnetwork.corp");

            if (args.Length > 0)

            {

                uri = new Uri(args[0]);

            }

            ILocation location = SetupConnection(uri);

            PrintQlikSenseVersionNumber(location);

        }

        private static ILocation SetupConnection(Uri uri)

        {

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

            // Defines the location as NTLM via proxy. The default value for proxyUsesSsl is true. Must be set to false if the connection uses http.

            //location.AsDirectConnectionToPersonalEdition();

            //var domain = "myDomain";

            string user = "*****";

            string pwd = "*****";

            //location.AsNtlmUserViaProxy(proxyUsesSsl: true); //i have also set this to false. and i have checked the proxy to make sure it                receives both https and http connections

            location.AsNtlmUserViaProxy(proxyUsesSsl: true, loginCredentials: new NetworkCredential(user, pwd, uri.ToString()));

            return location;

        }

1 Reply
Øystein_Kolsrud
Employee
Employee

Looks like the SDK and it's dependencies have not been installed correctly. Did you install it from NuGet? You might want to try to simply do a reinstall of that package.