Thanks Alex ,
I have constructed the code as per your suggestion , please find the code below :
var uri = new Uri("https://myQlikSenseServer.myDomain.com:port");
ILocation location = Qlik.Engine.Location.FromUri(uri);
The same error occurs again.
I have some clarifications in my mind , i would like to bring to your notice . they are :
1. Is it possible authenticate qliksense server using the code itself , i don't want the page to ask the Username and Password ?, and where to hard code the Credentials ?
2. do i need to give any permissions to give access to my server , in order to connect from the .Net SDK code ?
3. i have download the sample application given by the Community (PublicExamples) , using this code , i am trying to connect my server , the same error occurs again and again .
Please give me a solutions for this problems .