Sowmya Sirsi

Sowmya Sirsi

  • NA
  • 173
  • 41.2k

Timeouts larger than Int32.MaxValue TotalMilliseconds

Oct 27 2021 9:48 AM

Hi Team,

I am getting error as below for the mentioned line inside try block. I am not getting what am I missing the line. Can anyone suggest me please?

configured value:  <add key="MDWTimeoutInSeconds" value="100000000000000" />

    objAuthenticateClient.Endpoint.Binding.SendTimeout = new TimeSpan(0, 0, Convert.ToInt32(ConfigurationManager.AppSettings["MDWTimeoutInSeconds"]));

    objAuthenticateClientResponse = objAuthenticateClient.authenticate(objAuthenticateClientRequest);
    LogResponseData(objAuthenticateClientResponse, request.TransactionID);



the exception Timeouts larger than Int32.MaxValue TotalMilliseconds (approximately 24 days) cannot be honored. To disable timeout, specify TimeSpan.MaxValue.


Answers (2)