System.ServiceModel.ProtocolException: “net.tcp://192.168.1.117:9998/DataConfigService/”不支持请求的升级。这可能是由于不匹配的绑定(例如,在客户端上启用了安全设置,却未在服务器上启用)造成的。
客户端、服务端的配置都是一样的,如下:
<bindings>
...
<netTcpBinding>
<binding name="tcpBinding" receiveTimeout="24.20:31:23.6470000" sendTimeout="00:30:00" maxReceivedMessageSize="1000000000" transferMode="Streamed">
<readerQuotas maxDepth="256" maxStringContentLength="1000000000" maxArrayLength="100000000" />
<security mode="None">
<transport clientCredentialType="None" protectionLevel="None" />
<message clientCredentialType="None" />
</security>
</binding>
</netTcpBinding>
</bindings>