15 Replies Latest reply: May 13, 2016 6:10 AM by Abrar Ansari RSS

    GeneralCommunicationException with communication error WebSocketSendOnClosed and http error code 500

    Abrar Ansari

      Hi,

      I am not able to locate qlik sense server using Dot Net SDK.

      error message is:

      Connection failed after 4 attempts. Unable to keep connection open: Failed to ensure open connection: GeneralCommunicationException with communication error WebSocketSendOnClosed and http error code 500.



      I have already added my IP-Address in web socket whitelist in virtual proxy.

       

      this is my code sample

       

        try

                  {

                      Uri uri = new Uri("http://ServerIP:873");

                      ILocation location = Qlik.Engine.Location.FromUri(uri);

                      location.VirtualProxyPath = "virproxy";

                       location.AsStaticHeaderUserViaProxy("User ID", null, false);

                      using (IHub hub = location.Hub())

                      {

                          label1.Text = hub.ProductVersion();

                      }

                  }

                  catch (Qlik.Engine.Communication.CommunicationErrorException communicationException)

                  {

                      throw communicationException;

                  }