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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Mar 13, 2015, 2:34 PM
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