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

Unable to connect to QlikSense server through .NET SDK

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));

Please help me to solve this issue.

Thanks,

Nayana

13 Replies
Øystein_Kolsrud
Employee
Employee

I believe that depends on the settings of the server you are connecting to, but typically you do not need certificates to connect with the SDK. The most common way of connecting is using NTLM authentication which pretty much hides most parts of how the authentication handshaking is handled.

Anonymous
Not applicable
Author

thank You for your Reply. When I try NTLM authnetication I am following error:-

Connection failed after 4 attempts. Error message:

  GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error code 500

  GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error code 500

  GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error code 500

  GeneralCommunicationException with communication error WebSocketConnectionNotAccepted and http error code 500

httperrorcode500.png

konrad_mattheis
Luminary Alumni
Luminary Alumni

Hi,

this can be also a IPv6 Problem. I had the same issue at a customer with DNS -> IPv6 resolution. If got the same error message. After using the IPv4 it was working fine.

bye Konrad

tarek_hashash
Contributor
Contributor

Hi ,

please check the default virtual  proxy make it Windows Authentication .

if you still facing this issue , you can reach me by this mail : tarek.hashhash@yahoo.com.

thanks