views:

750

answers:

1

Can anybody explain what this error means:

The .Net Framing mode being used is not supported by blah blah yadda

I can't find any info worthwhile. The exception says to check the server logs, however I can't find anything in them relating to this error. I don't know what the hell a "framing mode" is, otherwise I'd try different framing modes.

What I'm trying to do is to create a TCP WCF endpoint to send a Stream to the client.


Here's the interface (prototyping):

[ServiceContract]
public interface IXpsService
{
    [OperationContract]
    Stream GetCurrentDocument();
}
+1  A: 

One of the ways this error occurs is if there is a mismatch in the configuration of the client and the server.

The default is buffered, if one is set to streaming, when they try to talk to each other you get a framing error.

If think that each batch of data that the buffered tries to send over is a frame.

Shiraz Bhaiji
Yeah, that was it. Problem was in the CreateChannel call; wasn't setting the transfer mode.
Will