I have a c# web application that calls an API, It was working fine until past two weeks since then it started failing with below error.
An existing connection was forcibly closed by the remote host
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.
When I try the same code with c# console application, it is working fine without any errors.
Can anyone please let me know why am I getting the error?