Qlik Community

Ask a Question

Integration, Extension & APIs

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

QlikWorld May 10-12, Online and Free! REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 

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...


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);



        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.


            //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

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.