3 Replies Latest reply: Oct 19, 2016 3:29 AM by Johan Bjerning RSS

    How to fix this Error : An exception of type 'Qlik.Engine.Communication.CommunicationErrorException' occurred in Qlik.Engine.dll but was not handled in user code  Additional information: Connection failed after 4 attempts.

    Aro raj

      Hello ,

       

               I am trying to connect with QlikSense through .Net SDK , My qliksense server is hosted in my dedicated server , i am able to access from my browser . When i connect them from the .Net SDK code , it throws the following error :

       

      Connection failed after 4 attempts. Error message:
        The handshake failed due to an unexpected packet format.


      I would like to paste my code for your view :


             ILocation location = Qlik.Engine.Location.FromUri(new Uri("http://myserverip:port/"));

              location.AsDirectConnectionToPersonalEdition();

       

              using (IHub hub = location.Hub())

              {

                  string value = hub.ProductVersion();

              }

       

      can you please help to fix this issue .

       

      Thanks for your support.