1 Reply Latest reply: Aug 21, 2017 6:24 AM by Øystein Kolsrud RSS

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

    Rebekah Beets

      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;