Error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

mageshbabu d 6 Reputation points
2021-02-07T17:53:05.813+00:00

Hi,

We are getting the below issue whenever invoking(From server side code) WCF service from an ASP.Net web site. Both web site and WCF service is configured in the same server as a separate web site. Please some one help us to identify the and resolve the issue.

Hosted Server: Windows server 2019 & 2016

Error:

System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to http://172.20.13.151:8081/KMFAdminService.svc/ep2.
This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server
(possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException: The underlying connection was closed:
An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was
forcibly closed by the remote host
. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Sharma, Vishal 1 Reputation point
    2021-02-26T12:34:04.647+00:00

    I am getting the same error while doing an http post for creating a global index request.

    Here's my service configuration

    <Search>
    <add key="SearchEngineUrl" value="https://vishalazuresearchservice.search.windows.net"></add>
    <add key="SearchEngineName" value="AZURESEARCH"></add>
    <add key="SearchServiceURL" value="http://localhost:8088/DuckCreek"></add>
    <add key="SearchServiceVersion" value="2020-06-30"></add>
    <add key="SearchServiceKey" value="E2FB03B744EA4A6896A10BE6AA745FED"></add>
    <add key="SearchTenant" value="policy"></add>
    <add key="SearchWorkflowManuscript" value="Carrier_SearchWorkflow_Data_1_0_0_0"></add>
    <add key="SearchInterfaceManuscript" value="Carrier_SearchInterface_Data_1_0_0_0"></add>
    <add key="SearchConfigurationManuscript" value="Carrier_SearchConfiguration_Data_1_0_0_0"></add>
    <add key="IndexDataForSearch" value="True"></add>
    </Search>

    0 comments No comments