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:

here


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -