1 Reply Latest reply: Apr 16, 2015 8:16 AM by Helene Svensson RSS

    Connecting to QlikSense Desktop from .Net SDK

    Darius Pranskus

      Hi

       

      Is it possible to connect to QlikSense Desktop using .Net SDK or do I need to have full version? I tried the following code, but it is not working, though no exception is raised.

       

          Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load

              Dim local As Qlik.Engine.ILocation = Qlik.Engine.Location.FromUri("ws://localhost:4848")

              Using Hub As IHub = local.Hub

                  Label1.Text = Hub.QvVersion

              End Using

          End Sub

       

      Thanks

        • Re: Connecting to QlikSense Desktop from .Net SDK

          Hi Darius,

           

          yes it is possible. You need to set up the security mode for the communication. If the security mode has not been established, the access to the location object will be refused. You will get an exception if you add try/catch.

           

          The method to use when connecting to Qlik Sense Desktop is methodAsDirectConnectionToPersonalEdition();

          local.AsDirectConnectionToPersonalEdition();


          BR,

          Helene