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
- 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.
- 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.- JasonEadesCopper Contributor
DonHeuvelman Do you get the problem if you slow the process down? Maybe put some sleep operations in at the end of each iteration. If not TLS related, perhaps SP is throttling you?
- CesareDaldelloCopper Contributorthanks a lot, it worked!
- Kevin_HoytIron ContributorAny luck finding a solution? I am running in to the same issue.
- CesareDaldelloCopper Contributor
Kevin_Hoyt Me too.. same problem