Rajveer singh

Rajveer singh

  • 806
  • 1k
  • 249.4k

The operation has timed out

Aug 13 2018 7:41 AM
Hi all,
 
This issue on a particular system, if called with https and call with HTTP then application working fine.
 
This is the desktop client code here.
 
HttpWebRequest req = (HttpWebRequest)(HttpWebRequest.Create(public_url + api_ping_url));
req.Method = "POST";
req.KeepAlive = false;
req.ProtocolVersion = HttpVersion.Version10;
req.ContentType = "application/xml";
req.Timeout = 60000;
req.ReadWriteTimeout = 60000;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
req.Headers.Set(HttpRequestHeader.Authorization, "Basic shdghgdshg==");

Answers (6)