Sowmya Sirsi

Sowmya Sirsi

  • 1.9k
  • 147
  • 6.3k

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" />

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

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

}

Error:

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

Thanks


Answers (2)