12 Replies Latest reply: Jan 28, 2017 10:33 AM by Konrad Mattheis RSS

    Unable to connect to QlikSense server through .NET SDK

    Nayana M

      Hi,

       

        I am trying to connect Qlik Sense server through dotnet sdk and getting below mentioned error:-

      Qlik.Sense.JsonRpc.CommunicationErrorException: Connection failed after 4 attempts. Error message:

      Value cannot be null.

       

       

      I tried :-

        location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps), loginCredentials: new NetworkCredential(username, password, domain));

       

      Please help me to solve this issue.

       

      Thanks,

      Nayana

        • Re: Unable to connect to QlikSense server through .NET SDK
          Øystein Kolsrud

          Can you provide a stack trace? It would be interesting to see where that "Value cannot be null" is coming from. I'm unable to reproduce it.

           

          And what version of the SDK and Qlik Sense server are you using?

            • Re: Unable to connect to QlikSense server through .NET SDK
              Nayana M

              Hi Qystein ,Thank you for your reply,

               

              I am using Qlik Sense Server version 2.2.4.0  for this. Here is the stack trace,

               

              Stack Trace :-

                 at Qlik.Engine.Communication.QlikConnection.AwaitResponseTask[T](T task, String methodName, CancellationToken cancellationToken)

                 at Qlik.Engine.Communication.QlikConnection.Ping(Nullable`1 noVersionCheck)

                 at Qlik.Engine.LocationExtensions.Hub(ILocation location, ISession session, Nullable`1 noVersionCheck)

                 at Qlik.Engine.LocationExtensions.GetAppIdentifiers(ILocation location, Nullable`1 noVersionCheck)

                 at Login.Button1_Click(Object sender, EventArgs e) in c:\Qlik\Login.aspx.cs:line 21

                 at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

                 at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

                 at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

                 at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

                 at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

                 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

              • Re: Unable to connect to QlikSense server through .NET SDK
                Nayana M

                I am using Visual Studio 2015, QlikSense Server version 2.2.4.0, Qlik Sense .net SDK 3.1,

                 

                and stack trace is,

                   at Qlik.Engine.Communication.QlikConnection.AwaitResponseTask[T](T task, String methodName, CancellationToken cancellationToken)

                   at Qlik.Engine.Communication.QlikConnection.Ping(Nullable`1 noVersionCheck)

                   at Qlik.Engine.LocationExtensions.Hub(ILocation location, ISession session, Nullable`1 noVersionCheck)

                   at Qlik.Engine.LocationExtensions.GetAppIdentifiers(ILocation location, Nullable`1 noVersionCheck)

                   at Login.Button1_Click(Object sender, EventArgs e) in c:\Qlik\Login.aspx.cs:line 21

                   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

                   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

                   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

                   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

                   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

                   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)