Getting this message:
This request operation sent to net.pipe://127.0.0.1/MyService did not receive a reply within the configured timeout (00:01:00). 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.
Any ideas, why it can happen?
UPD: my server code doesn't hang. I have the same exception, even when that server method is empty. Actually, it doesn't event gets called, log message in it's beginning is never shown and breakpoint never is hit.
UPD2: my code is extremely simple, and it runs ok inside isolated test app
private static void ServerStart(string channelUri)
{
var host = new ServiceHost(typeof(Service), new Uri(channelUri));
host.AddServiceEndpoint(typeof(IServiceContract),
new NetNamedPipeBinding(NetNamedPipeSecurityMode.Transport),
new Uri(channelUri));
host.Open();
}
private static void ClientStart(string channelUri)
{
var factory = new ChannelFactory<IServiceContract>
(new NetNamedPipeBinding(), new EndpointAddress(channelUri));
var proxy = factory.CreateChannel();
proxy.StartOnServer();
}