Hello all,
I was working on WCF service with an endpoint binding as netTcpBinding, hosted on a Console application. Below shown configuration setting.
- <system.serviceModel>
- <services>
- <service name="FullTimePartTime_EmpWCFServiceAppl.EmployeeService" behaviorConfiguration="mexBehaviour" >
- <endpoint address="EmployeeService" binding="netTcpBinding" contract="FullTimePartTime_EmpWCFServiceAppl.IEmployeeService">
- </endpoint>
- <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange">
- </endpoint>
- <host>
- <baseAddresses>
- <add baseAddress="net.tcp://localhost:7090/"/>
- </baseAddresses>
- </host>
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="mexBehaviour">
- <serviceMetadata httpGetEnabled="false" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
Console application executes fine. WPF is client app which should consume WCF service but when i tried to add ServiceRefrence, Error occurs
Can anyone help me to fix this issue & let me know the mistake.
Thanks in advance.