Hi TheobaldDuShanghaiWicresoftCoLtd-3477
The exception I get on the client side is the following (I replaced my class and function names by UPPERCASE placeholders...)
MYPROXYCLASS.MYPROXYFUNCTION_Async<>: <INTERFACEFUNC_Async>b__0, caller: INTERFACEFUNC_Async, caught System.TimeoutException: This request operation sent to net.pipe://...MYSERVICEPATH... did not receive a reply within the configured timeout (00:00:10). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.
at System.Runtime.AsyncResult.EndTAsyncResult
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass7_01.<CreateGenericTask>b__0(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action
1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable
1.ConfiguredTaskAwaiter.GetResult()
at MYPROXYCLASS1.<MYPROXYFUNCTION_Async>d__7
1.MoveNext()
The service side is completely unaware of this.
I know that the server answers in a few milliseconds, so extending the timeout of the call will only cause the timeout to happen later...