---
title: "Discussion on \"System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host\" | Hashnode"
description: "Discussion on \"System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host\". Add these 2 lines just before the service is called. (.NET 4.8)\n// using System.Net;\nServicePointManager.Expect100Continue = false;\nServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tl..."
url: "https://hashnode.com/posts/systemioioexception-unable-to-read-data-from-the-transport-connection-an-existing-connection-was-forcibly-closed-by-the-remote-host/64dc9ea118fa05c8414af45f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host](https://karatas.dev/systemioioexception-unable-to-read-data-from-the-transport-connection-an-existing-connection-was-forcibly-closed-by-the-remote-host?utm_source=hashnode&utm_medium=feed)

Add these 2 lines just before the service is called. (.NET 4.8) // using System.Net; ServicePointManager.Expect100Continue = false; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tl...

Aug 16, 2023 · 1 min read · karatas.dev  
Read the article

-   [#webrequest](https://hashnode.com/tag/webrequest)

## Written by

[Ferhat Karataş](https://hashnode.com/@karatas)

@karatas · Turkey

  
[View profile](https://hashnode.com/@karatas)

Software Developer

Performance freak

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
