Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 6737 |  Welcome, Guest!   Register  Login
 Home > Forums > Error and Resolution > Service 'xx' has zero application (non-infrastructure) endpoints. T ...
SheoNarayan

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

Replies: 2 | Posted by: SheoNarayan on 2/23/2011 | Category: Error and Resolution Forums | Views: 11028 | Status: [Microsoft_MVP] [Administrator] | Points: 10  


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, Microsoft MVP
230+ ASP.NET Tips and Tricks - http://www.itfunda.com/Howto


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Madhu.b.rokkam
Madhu.b.rokkam  
Posted on: 2/23/2011 11:34:25 PM
Level: Bronze | Status: [Member] [MVP] | 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. | Reply | Alert Moderator 

Karthikanbarasan
Karthikanbarasan  
Posted on: 2/23/2011 11:45:20 PM
Level: Silver | Status: [Member] [Moderator] [Microsoft_MVP] [MVP] | Points: 25

Good one sheo!!!

Thanks
Karthik
www.f5Debug.net

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

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 12:28:54 AM