Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Service Refrence Error - netTcpBinding
Learn Avid
Sep 23 2017 11:16 PM
274
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Convert Service client to normal service
WCF define which webservice can be accessed by callers