Appear in Online Interview to test your skills and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Submit content and win cash & prizes monthly.
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Forums Author
Thu, 24-Apr-2014 Authors
Bageshkumarbagi
10
Chaithragm
10
All Time Authors
Jayakumars
3930
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)

Service 'xx' has zero application (non-infrastructure) endpoints. This might be because no configura

SheoNarayan
Posted by SheoNarayan under Error and Resolution on 2/23/2011 11:17:20 PM | Points: 10 | Views : 13820 | Status : [Microsoft_MVP] [Administrator] | Replies : 2
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.

 <services>

<service name="WcfService.Service1" behaviorConfiguration="NetTcpServiceBehavior" >
<endpoint address="" binding="netTcpBinding" contract="WcfService.IService1" name="netTcpBindingEndpoint">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" bindingConfiguration=""
name="MexTcpBindingEndPoint"/>
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:9864/WcfService" />
</baseAddresses>
</host>
</service>


Notice the bold and italic service name in the code snippet.

Regards,
Sheo Narayan
The Founder
http://www.dotnetfunda.com


Reply | Reply with Attachment

=> Scroll below for responses


Comments or Responses

Posted by: Madhu.b.rokkam on: 2/23/2011 [Member] [MVP] Bronze | Points: 25

Thanks for sharing this with all Sheo..

good one..

Thanks and Regards
Madhu

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/23/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Good one sheo!!!

Thanks
Karthik
www.f5Debug.net

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator


Login to post response.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.

Found interesting? Add this to: