I have the following code:
private Uri currentUri; private void Form1_Load(object sender, EventArgs e) { currentUri = new Uri(@\"http://www.stackoverflo
Before Execute query I put the statement as below and it resolved my error. Just FYI in case it will help someone.
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; ctx.ExecuteQuery();