c# - Host WCF in Windows Forms: Error when opening the host -
i trying start , stop wcf service library through windows desktop application got stuck. cannot start because gives me error in shost.open();
code:
private void startwcfedchost() { servicehost shost = new servicehost(typeof(wcfservicelibrary.service)); shost.open(); }
error:
service 'wcfservicelibrary.service' has 0 application (non-infrastructure) endpoints.
this might because no configuration file found application, or because no service element matching service name found in configuration file, or because no endpoints defined in service element.
but when try run wcf service works, how can fix issue?
i suggest take @ following:
Comments
Post a Comment