Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
QlikWorld 2023, a live, in-person thrill ride. April 17 - 20, 2023, in Las Vegas! REGISTER TODAY
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