When I was trying to add the reference of my web services over netTcpBinding, I got following error.
Service 'WcfService.Service1' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
I resolved this error by changing the name of the service to fully qualified name. Below is the code snippet.
<service name="WcfService.Service1" behaviorConfiguration="NetTcpServiceBehavior" >
<endpoint address="" binding="netTcpBinding" contract="WcfService.IService1" name="netTcpBindingEndpoint">
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" bindingConfiguration=""
<add baseAddress="net.tcp://localhost:9864/WcfService" />
Notice the bold and italic service name in the code snippet.
Sheo Narayan, Microsoft MVP
230+ ASP.NET Tips and Tricks - http://www.itfunda.com/Howto
| Reply with attachment
| Alert Moderator