Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
mstoler
Partner - Specialist
Partner - Specialist

Qlik Sense .Net SDK Timeout

Hello,

I am using the Qlik Sense .Net SDK to load an Application.

Sometimes when I use the statement below to load an app I get a Timeout Exception.  Is there a way to set the Timeout Value?

ILocation location = Qlik.Engine.Location.FromUri(new Uri(sQlikSenseServer));

location.AsNtlmUserViaProxy(proxyUsesSsl: false);

IAppIdentifier appIdentifer = location.AppWithNameOrDefault(sQlikSenseApplication);

var app = location.App(id);    // This statement sometimes gets a Timeout Exception

Thank You,

1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

Yes, there is a setting for it. You can use this one:

https://help.qlik.com/en-US/sense-developer/February2018/apis/net%20sdk/html/P_Qlik_Sense_JsonRpc_Rp...

It's a static, global property so you can set it directly. If you don't care about timeouts, you could write like this:

JsonRpc.Timeout = Int32.MaxValue;

Another option would be to use the async version of App. That way you can control the timeout behavior yourself:

https://help.qlik.com/en-US/sense-developer/February2018/apis/net%20sdk/html/M_Qlik_Engine_LocationE...

View solution in original post

1 Reply
Øystein_Kolsrud
Employee
Employee

Yes, there is a setting for it. You can use this one:

https://help.qlik.com/en-US/sense-developer/February2018/apis/net%20sdk/html/P_Qlik_Sense_JsonRpc_Rp...

It's a static, global property so you can set it directly. If you don't care about timeouts, you could write like this:

JsonRpc.Timeout = Int32.MaxValue;

Another option would be to use the async version of App. That way you can control the timeout behavior yourself:

https://help.qlik.com/en-US/sense-developer/February2018/apis/net%20sdk/html/M_Qlik_Engine_LocationE...