I'm building a WCF services to transfer large files (~8 Gig) between two processes by using named pipes.
I've got the concept working to transfer small files in streaming mode. Although for larger files i have to increase the maxReceivedMessageSize. I can specifiy the bindingConfiguration in the host app.config without any problem.
The problem occurs when I specifiy the bindingConfiguration in the client endpoint in the client app.config.
bindingConfiguration="MyNamedPipeBinding"
The error message i get:
The .Net Framing mode being used is not supported by 'net.pipe://localhost/MyService'. See the server logs for more details.
Framing mode Singleton is not supported.
Host config:
<services>
<service name="MyService">
<endpoint
address="net.pipe://localhost/MyService"
binding="netNamedPipeBinding"
bindingConfiguration="MyNamedPipeBinding"
contract="MyApp.MyService"
name="MyServiceEndpoint"/>
</service>
</services>
<bindings>
<netNamedPipeBinding>
<binding name="MyNamedPipeBinding"
transferMode="StreamedResponse"
maxBufferSize="32768"
maxReceivedMessageSize="21474836480">
<security mode="None" />
</binding>
</netNamedPipeBinding>
</bindings>
Client config:
<client>
<endpoint
address="net.pipe://localhost/MyService"
binding="netNamedPipeBinding"
bindingConfiguration="MyNamedPipeBinding"
contract="MyApp.MyService"
name="MyServiceEndpoint">
</endpoint>
</client>
<bindings>
<netNamedPipeBinding>
<binding name="MyNamedPipeBinding"
transferMode="StreamedResponse"
maxBufferSize="32768"
maxReceivedMessageSize="21474836480">
<security mode="None" />
</binding>
</netNamedPipeBinding>
</bindings>