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

Facing “Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.” error in C# web API when allowing application from the infusionsoft and getting invalid token. Using the same code provided with different keys value. Please help me to get out of this.