Forum Discussion

kevalsolanki's avatar
kevalsolanki
Copper Contributor
Sep 10, 2020

SharePoint CSOM - Unable to read data from the transport connection: An existing connection

While doing some not heavy operations (like add admins, add content type) in SharePoint CSOM we are getting below error which is not reproducible but comes intermittently. Mainly different article pointing to client context.

 

"IOException*Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

searched and found some articles as below. but still not getting clear solution.

https://stackoverflow.com/questions/59771733/system-net-sockets-socketexception-an-existing-connection-was-forcibly-closed

 

Thanks, Keval

  • Kevin_Hoyt's avatar
    Kevin_Hoyt
    Iron Contributor
    Any luck finding a solution? I am running in to the same issue.
  • susiew32's avatar
    susiew32
    Copper Contributor
    Update your .net framework version to at least 4.7.2. This will enable TLS 1.2 which is necessary for the data transfer.
    • DonHeuvelman's avatar
      DonHeuvelman
      Copper Contributor
      I have an application running .NET 4.8 which is showing the same behavoir.
      I'm extracting files from SharePoint per iteration. It runs for about 10 iterations, then I get the same exception as mentioned.

Resources