My solution contains two projects: WCF services and WCF client. The order of launching:
When I manually launch my service and later my client it works fine. But if I do the same through IDE in the Debug mode then time of time I get the exception:
An unhandled exception of type
System.ServiceModel.EndpointNotFoundException
occurred inmscorlib.dll
Additional information: Listening on
net.pipe://localhost/
wasn't executed by any ending point who could accept the message. Among other causes it could be caused by the wrong address or action of SOAP. For more details see in the description of InnerException (if is available).
But my client's Config
-file contains timeout settings:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding
closeTimeout="00:30:30"
openTimeout="00:30:30"
receiveTimeout="00:30:30"
sendTimeout="00:30:30"/>
</netNamedPipeBinding>
</bindings>
<client>
<endpoint name="pipe1"
address="net.pipe://localhost"
binding="netNamedPipeBinding"
contract="ServiceReference1.IContent"/>
<endpoint name="pipe2"
address="net.pipe://localhost"
binding="netNamedPipeBinding"
contract="ServiceReference1.IMessages"/>
</client>
</system.serviceModel>
</configuration>
Why the exception occur time of time in the Debug mode?
UPD
Additional variant of the decission:
#if DEBUG
System.Threading.Thread.Sleep(1000);
#endif