Forum Discussion
kevalsolanki
Sep 10, 2020Copper Contributor
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.
Thanks, Keval
- Kevin_HoytIron ContributorAny luck finding a solution? I am running in to the same issue.
- CesareDaldelloCopper Contributor
Kevin_Hoyt Me too.. same problem
- susiew32Copper ContributorUpdate your .net framework version to at least 4.7.2. This will enable TLS 1.2 which is necessary for the data transfer.
- CesareDaldelloCopper Contributorthanks a lot, it worked!
- DonHeuvelmanCopper ContributorI 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.- dscoreCopper Contributor
DonHeuvelman, did you ever get a solution?