L A

L A

  • NA
  • 170
  • 171.5k

Service Refrence Error - netTcpBinding

Sep 23 2017 11:16 PM
Hello all,
I was working on WCF service with an endpoint binding as netTcpBinding, hosted on a Console application. Below shown configuration setting.
  1. <system.serviceModel>  
  2.     <services>  
  3.       <service name="FullTimePartTime_EmpWCFServiceAppl.EmployeeService" behaviorConfiguration="mexBehaviour" >  
  4.         <endpoint address="EmployeeService" binding="netTcpBinding" contract="FullTimePartTime_EmpWCFServiceAppl.IEmployeeService">  
  5.         </endpoint>  
  6.         <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange">  
  7.         </endpoint>  
  8.         <host>  
  9.           <baseAddresses>  
  10.             <add baseAddress="net.tcp://localhost:7090/"/>  
  11.           </baseAddresses>  
  12.         </host>  
  13.       </service>  
  14.     </services>  
  15.     <behaviors>  
  16.       <serviceBehaviors>  
  17.         <behavior name="mexBehaviour">  
  18.           <serviceMetadata httpGetEnabled="false" />  
  19.         </behavior>  
  20.       </serviceBehaviors>  
  21.     </behaviors>  
  22. </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.

Answers (1)