6
Answers

The operation has timed out

Rajveer singh

Rajveer singh

6y
9.3k
1
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)