Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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 III
Partner - Creator III

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