Omokahfe Ojagun

Omokahfe Ojagun

  • NA
  • 2
  • 1.7k

WCF data contract and data member

Mar 12 2015 11:53 PM
I have this error on my console page and I find it difficult to resolve it, please assist me. The error is
 

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

 
 

Answers (1)