Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accessing Qlik Sense Server using header authentication fails to exception

I try to connect the server with static header authenctication in .NET SDK:

  Qlik.Engine.ILocation loc = Qlik.Engine.Location.FromUri(new Uri("https://XXX.cloudapp.net"));

        loc.VirtualProxyPath = "testi1";

        loc.AsStaticHeaderUserViaProxy("ValidUser", "HeaderAuthencticationHeaderName");

     

         using (IHub hun = loc.Hub())

         {

            textBox.Text = hun.OSVersion();

         }

This fails with the exception:

"

An unhandled exception of type 'System.Security.Authentication.AuthenticationException' occurred in Qlik.Engine.dll

Additional information: The remote certificate is invalid according to the validation procedure.

"

How to pass the validation procedure??

3 Replies
Not applicable
Author

If i try to connect with http the exception is:

"

System.IO.IOException: The handshake failed due to an unexpected packet format.

   at Qlik.Engine.Hub.QTProduct()

   at Qlik.Engine.LocationExtensions.Hub(ILocation location, ISession session, Boolean noVersionCheck)

  ..

"

jp_golay
Partner - Creator II
Partner - Creator II

Hi I get same exception did you find a solution?

Thanks

ebiexperts CTO
With WIP, Control everything!
Qlik Sense, QlikView and NPrinting Source control, Versioning and Deployment, Agile Lifecycle Management
Not applicable
Author

I cannot find the websocket example in SDK NET documentation, to which the exception implies