I am trying to test a simple WCF tcp.net client / server application. WCF is hosted on Windows 7 IIS. I have included TCP.net in IIS. I granted liberal security privileges to serve the application by setting up the application pool with administrator privileges and installing the IIS application to run in context.
I turned on tracing in the service application for troubleshooting. Whenever I start a simple method call against a service from a WCF client application, I get the following exception:
"Stream Security is required at http://www.w3.org/2005/08/addressing/anonymous , but the security context has not been negotiated. This is probably because the remote endpoint is missing a StreamSecurityBindingElement from the binding."
Here is my client configuration:
<bindings> <netTcpBinding> <binding name="InsecureTcp"> <security mode="None" /> </binding> </netTcpBinding> </bindings>
Here is my service configuration:
<bindings> <netTcpBinding> <binding name="InsecureTcp" > <security mode="None" /> </binding> </netTcpBinding> </bindings> <services> <service name="OrderService" behaviorConfiguration="debugServiceBehavior"> <endpoint address="" binding="netTcpBinding" bindingConfiguration="InsecureTcp" contract="ProtoBufWcfService.IOrder" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="debugServiceBehavior"> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors>
source share