Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am getting the exception of operation not supported in WCF Test Client. I am trying to set a Client Server Communication over the Web Socket.

Server Side I have set a WCF Service but on running the svc file I am getting the error mentioned

"Operation not Supported in WCF Test Client"

What I have tried:

Below is the WCF configuration file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <bindings>
            <netHttpBinding>
                <binding name="NetHttpBinding_IHelloService" sendTimeout="00:05:00">
                    <webSocketSettings transportUsage="Always" />
                </binding>
            </netHttpBinding>
        </bindings>
        <client>
            <endpoint address="ws://localhost:61992/HelloService.svc" binding="netHttpBinding"
                bindingConfiguration="NetHttpBinding_IHelloService" contract="IHelloService"
                name="NetHttpBinding_IHelloService">
                <identity>
                    <dns value="localhost" />
                </identity>
            </endpoint>
        </client>
    </system.serviceModel>
</configuration>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900