QS, C# SDK - Not a valid method Parameter name: response
I'm using QlikSense November 2019 along with a C# project containg QlikSense.NetSDK v 14.1.0 and .NETFramework,Version=v4.7.2
When I run the following code, it throws an error:
Uri uri = new Uri("https://qliksense.somesite.net");
ILocation location = Qlik.Engine.Location.FromUri(uri);
loginCredentials: new NetworkCredential(user, pwd, domain),
//Throws an error with the "location.Hub()" call
using (IHub hub = location.Hub())
The error that I get is from the location.Hub() call and it gives me the following message and stacktrace.
Not a valid method
Parameter name: response
at Qlik.Engine.Communication.QlikConnection.AwaitResponseTask[T](T task, String methodName, CancellationToken cancellationToken)
at Qlik.Engine.LocationExtensions.Hub(ILocation location, ISession session)
at QlikTestOne.Program.Main(String args) in C:\Users\jdallas\source\repos\QlikTestOne\Program.cs:line 39
What could I be doing wrong? I was thinking that maybe I a port blocked or something, but when it says that it's not a valid method, I think that it has to do something with an API mismatch.