my code is like below
try
{
string strUserName="abc";
string strPassword="123";
ClientContext context = new ClientContext(siteurl);
var credentials = new NetworkCredential(strUserName, strPassword,"Ext");
context.Credentials = credentials;
// The SharePoint web at the URL.
Web web = context.Web;
// We want to retrieve the web's properties.
context.Load(web);
// Execute the query to the server.
context.ExecuteQuery();
// Now, the web's properties are available and we could display
// web properties, such as title.
System.Console.WriteLine("Web Title");
System.Console.WriteLine(web.Title);
}
catch (Exception ex)
{
}
it is giving error "unable to connect remote server"