Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
TKendrick20
Partner - Specialist
Partner - Specialist

Qlik Sense ASP.NET SDK Open New Tab and Authenticate User

I don't know why this is so incredibly hard. All I want to do is open a specific Qlik Sense dashboard in a new tab alongside my ASP.NET application and log the user in automatically.

I'm using a proxy server and currently I am doing the following:

Uri dashboard = new Uri("https://subdomain.domain.com");

ILocation location = Qlik.Engine.Location.FromUri(dashboard);

location.AsNtlmUserViaProxy(loginCredentials: new NetworkCredential("USERNAME", "PASSWORD", "DOMAIN"));

This all works fine and If I do something like this I can see the app names of all the apps in my account, so I know I am connecting properly.

foreach(IAppIdentifier app in location.GetAppIdentifiers())

{

     Console.WriteLine(app.AppName);

}

So, how can I turn this into simply opening a new tab in my browser and authenticating the user automatically so they can see their apps?

1 Reply
Anonymous
Not applicable

Hi,

I am trying to connect Qlik Sense server through dotnet sdk and getting below mentioned error:-

Qlik.Sense.JsonRpc.CommunicationErrorException: Connection failed after 4 attempts. Error message:

Value cannot be null.

I tried :-

  location.AsNtlmUserViaProxy(proxyUsesSsl: uri.Scheme.Equals(Uri.UriSchemeHttps), loginCredentials: new NetworkCredential(username, password, domain));

but I am unable to connect to Qliksense server.

Please advice me.

Thanks,

Nayana