Unhandled Exception: System.InvalidOperationException: Service 'EmployeeService.
EmployeeService' 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 fi
le, or because no endpoints were defined in the service element.
at System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreApplicatio
nEndpoints(ServiceDescription description)
at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(Se
rviceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnBeginOpen()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at EmployeeServiceHost.Program.Main(String[] args) in c:\Users\Omo\Documents\
Visual Studio 2013\Projects\EmployeeService\EmployeeServiceHost\Program.cs:line
16
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Pradeep ShetRank #595 · 4K reputationPosted Mar 13, 2015, 10:34 AM EDT
IF you are adding proxy by adding service reference, then you need to specify the endpoint tag in your webconfig file.
http://www.codeproject.com/Articles/42643/Creating-and-Consuming-Your-First-WCF-Service
Hope this helps you, mark it as answered if it solves your problem