Questions tagged [duplex-channel]

47 questions
31
votes
0 answers

How do I correctly configure a WCF NetTcp Duplex Reliable Session?

Please excuse the Obvious Self-Q/A, but this information is widely misunderstood, and almost always incorrectly answered. So I Wanted to place this information here for people searching for a definitive answer to this problem. Even so, there's…
Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
8
votes
1 answer

Inspect WCF Messages in the Callback direction?

I can inspect WCF messsages on both Client side and server side using IClientMessageInspector, IDispatchMessageInspector respectively. But in a Duplex comunications it is not clear how to do it in a callback from server to client (Nor much…
Juan M. Elosegui
  • 6,471
  • 5
  • 35
  • 48
5
votes
2 answers

WCF - Closing a duplex ServiceHost blocks for CloseTimeout duration if closed when client(s) connected

I have a Windows Service that hosts three different duplex WCF channels. Clients can connect to have updates sent to them via their callback contract. Essentially there are three pub-sub channels. This service takes a long time to bounce when…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
4
votes
4 answers

WCF: How to diagnose faulted channels?

I'm working on shipping in a change for my lab that will hopefully help diagnose some weird channel-faulting weirdness we're seeing. There's a test application that uses DuplexChannelFactory to connect to a couple windows services, and for some…
bwerks
  • 8,651
  • 14
  • 68
  • 100
3
votes
1 answer

How can I extend WCF in the Callback direction?

I can attach an IParameterInspector using behaviors to each operation in the ClientRuntime and also to each operation in the DispatchRuntime on the service side. But it seems this only works from client to service. I also want to be able to attach…
3
votes
2 answers

WCF service Cannot catch a client's crash

I've created a WCF service which uses a NetTCP binding. My service is accessed by a client, saves its callback channel and uses it to call the client later on (it's a persistent tcp connection). Everything works fine, but if I decide to suddenly…
G. madn
  • 31
  • 6
3
votes
0 answers

Closing Duplex Channel still produces error in tracing

I have a duplex WCF channel used in a publish/subscribe pattern. I can not figure out how to cleanly disconnect clients without producing an error in the tracing. The error does not affect the application but shows up in the tracing logs. Since this…
2
votes
1 answer

Https and streaming? IDuplexSessionChannel via http - client port open by default?

I have some small questions of which I think they're quite easy to answer for a WCF expert, but which I don't exactly know. I'm hoping they're not to obvious: Does transport security (http with ssl) work in conjunction with streaming? If no, how…
user761665
2
votes
2 answers

Access the object which hosts the service

I'm using WCF 4 with C#. I'm using InstanceContextMode set to Single. The instance of the class implementing my contract is created using the constructor which accepts the reference of the object which hosts the service. The service object is passed…
sunilkumarba
  • 851
  • 2
  • 9
  • 18
2
votes
1 answer

The remote endpoint requested an address for acknowledgements that is not the same as the address for application messages

I am in the process of writing a WCF Duplex service for a chat application with a WPF client. The service code is below IChatCallback public interface IChatCallback { #region Public Methods and Operators [OperationContract(IsOneWay =…
Neil Stevens
  • 3,534
  • 6
  • 42
  • 71
2
votes
2 answers

Re-connection scenario in duplex WCF

I have two application connected by a duplex WCF connection. I works well, as long the connection is consistent. I am checking now how to handle the re-connecting scenarios, when the connection is lost and it has to reconnect again. And I'm…
vtortola
  • 34,709
  • 29
  • 161
  • 263
2
votes
3 answers

WCF Duplex Channel: Check if callback channel is still available

I have the following problem. I'm writing chat software. The client/server mechanism is based on DualHttpBinding of WCF. This means that if a user sends a message, all clients that are in the room where the message has been sent, are notified by the…
Simon
  • 9,255
  • 4
  • 37
  • 54
2
votes
0 answers

Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found

I am very new to WCF services. I have 1 WCF service created with NetHttpBinding and I have a Form application as a client of this service and I am trying to make a simple example of 2 way communication using this. Here is my…
Aalap
  • 2,847
  • 2
  • 26
  • 24
2
votes
2 answers

WCF Duplex nettcp callbacks not working

Environment There is WCF Service (NET:TCP | Reliable | SecurityEnabled) running as console on Physical Machine A There are 20-30 .NET client applications (Winforms) exposed over Citrix so hosted again on One physical machine different from…
Rajat Mehta
  • 201
  • 3
  • 14
2
votes
0 answers

Closing channel on client side after every call to service application

I've started working on a client-server distributed application using WCF. The clients should also send requests to the server, therefore I chose to implement duplex operations using the NetTcpBinding since all the clients will b on the same…
Adrian
  • 743
  • 9
  • 29
1
2 3 4