Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First off, your bindings don't even match between the client and the server :)</p> <p>Your client has a NetTcpBinding and a DualWsHttpBinding, and your server has a wsHttpBinding. i'm surprised they can even communicate to each other, to be honest. (Unless you're using WCF 4.0, in which case you will have default bindings and endpoints).</p> <p>Secondly, your service config file isn't referencing the delared binding - there is no bindingConfiguration attribute on the endpoints, so if communication is established the channel will use the default values for the specified binding protocol.</p> <p>The client configuration looks ok, try this for the server (I'm only including the NetTcpBinding protocol, and adding the behaviorName and bindingConfiguration attributes to the endpoint - the other bindings would be similar):</p> <pre><code>&lt;system.serviceModel&gt; &lt;bindings&gt; &lt;netTcpBinding&gt; &lt;binding name="TcpBinding" closeTimeout="10:00:00" openTimeout="10:00:00" receiveTimeout="10:00:00" sendTimeout="10:00:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="10000000" maxBufferSize="10000000" maxConnections="30" maxReceivedMessageSize="10000000"&gt; &lt;readerQuotas maxDepth="64" maxStringContentLength="10000000" maxArrayLength="100000000" maxBytesPerRead="10000000" maxNameTableCharCount="10000000" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="10:00:00" enabled="false" /&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="filebehavior"&gt; &lt;dataContractSerializer maxItemsInObjectGraph="2000000000"/&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;service&gt; &lt;endpoint address="net.tcp://localhost:8000/ChatRoom/service" behaviorConfiguration="filebehavior" binding="netTcpBinding" bindingConfiguration="TcpBinding" contract="ChatRoom" name="TcpBinding"&gt; &lt;identity&gt; &lt;servicePrincipalName value="my_machine\ASPNET" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/service&gt; &lt;/system.serviceModel&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload