Calling a Wcf service Dynamically Using reflections and NettcpBinding RRS feed

  • Question

  • Hi,

         I am creating a Generic WCF client. It is working fine with BasicHttpBinding and WsHttpBinding But with netTcpBinding it is able to load the assembly and created a proxy calss and even created the instance of the proxy calss But when I try to invoke any one of the service under this binding it is throwing the following exception

    {"The provided URI scheme 'http' is invalid; expected 'net.tcp'.\r\nParameter name: via"}

    My config file at server side is

          <service name="WCFServerTcp.CalTcp">
            <endpoint address="" binding="netTcpBinding" bindingConfiguration=""
                <dns value="localhost" />
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
                <add baseAddress="http://localhost:8734/Design_Time_Addresses/WCFServerTcp/Service1/" />
                <add baseAddress="net.tcp://localhost/" />

    the uri provided  is


    I am unable to trace out where I went wrong. The same client working well with Http and WsHttp Binding.


    Monday, June 24, 2013 1:31 PM