Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
bekahbeets2003
Not applicable

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
yko
Not applicable

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

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.