Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

mstoler
Contributor II

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
yko
Valued Contributor

Re: Qlik Sense .Net SDK Timeout

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...

1 Reply
yko
Valued Contributor

Re: Qlik Sense .Net SDK Timeout

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...