..The underlying connection was closed: An unexpected error occurred on a receive

前端 未结 8 621
一个人的身影
一个人的身影 2020-11-28 06:49

I have the following code:

private Uri currentUri;

private void Form1_Load(object sender, EventArgs e)
{
    currentUri = new Uri(@\"http://www.stackoverflo         


        
8条回答
  •  庸人自扰
    2020-11-28 07:38

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

提交回复
热议问题