Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The request channel timed out attempting to send after 00:01:00 Error, no app.config file on the project

Tags:

c#

.net-core

Im getting this error when executing the following line:

The request channel timed out attempting to send after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout

bool isUploaded = await provider.uploadSync(data, isRemote, token);

there is no app.config file on the project, how can I increase timeout?


1 Answers

Added this lines on Reference.cs after

this.Endpoint.Binding.CloseTimeout = new TimeSpan(0, 10, 0);
this.Endpoint.Binding.OpenTimeout = new TimeSpan(0, 10, 0);
this.Endpoint.Binding.ReceiveTimeout = new TimeSpan(0, 10, 0);
this.Endpoint.Binding.SendTimeout = new TimeSpan(0, 10, 0);

used this link to apply it How to increase the timeout values for a WCF service in a dot net core 2.1 project


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!