Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Security Error on 6th Request in .NET SDK

Hi,

I am using .Net SDK in Window application to communicate with qlik sense desktop. I am fetching sheet then its children. On a button click showing the object one by one by index. I am displaying the chart in webbrowser control.It is working fine, But after 6 request a pop up with security error displyed.

Code sample

  var sheet = TheApp.GetSheets().ToArray();

  var visualizations = sheet[1].Children.ToList();

  var barchart = visualizations[index];

  webBrowser1.Navigate(barchart.SingleUrl().Fix());

3 Replies
Not applicable
Author

Hi,

Your problem with 6 requests is a known issue for more information see

http://msdn.microsoft.com/en-us/library/ie/ee330736(v=vs.85).aspx#websocket_maxconn

If you are using a Qlik Sense version 2.2 the suggested solution i to use the singel mashup. Single keeps the websocket session open which solves the problem.

private void ShowChart(string serverUrl, string appId, string objectId)
{
  var urlString = $"{serverUrl}single/#/app/{appId}/object/{objectId}/options/nointeraction/select/clearall";
  webBrowserControl.Navigate(urlString);

}


For single mashup usage see Single integration ‒ Qlik Sense

Best regards

Lars-Göran Book

Not applicable
Author

Thank you for your quick reply.

Yes I am using Qlik Sense version 2.2 and your solution is working fine, but how to pass ticket with URL in your suggested pattern.

Second thing, What will happen if Qlik Sense will upgrade.

Not applicable
Author

Hi,

It should be backwards compatible, else it will be stated in the release notes.

Best regards

Lars-Göran Book