Hi all,
I'm facing a problem with timeout exception, sometimes the service need time for process/operation or to return response, I tried the below but still the issue shown up.
- Increase openTimeout = receiveTimeout = closeTimeout = "00:05:00" in both webConfig [ web project which is has the Views/Controller ] ... and the webConfig of [ WebServices project ]
- <httpRuntime targetFramework="4.6.1" executionTimeout="3600" /> in both webConfig
- Tried to set the timeout in the code by
- Service1 client = new Service1();
TimeSpan requestTime = new TimeSpan(0,5,0);
TimeSpan responseTime = new TimeSpan(0,5,0);
client.Endpoint.Binding.SendTimeout = requestTime;
client.Endpoint.Binding.ReceiveTimeout = responseTime; - Same both code in both project before client object call the service.
- Service1 client = new Service1();
Please if someone can help us, I will be thankful for him, what I need at least full two mints.