Click here to Skip to main content
15,905,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have done a demo about WCF Service Library with Windows Service Hosting.
but this is only can do the communication in local,if client and the WCF Service are in different place, what should I do?
Posted

1 solution

If client and service are going to be in different computers, host the service in IIS rather than windows service.
 
Share this answer
 
Comments
eric881027 10-Aug-11 5:02am    
Windows service does work, I found I need run the Windows service first,and then add the Service References in the client project.
dan!sh 10-Aug-11 9:46am    
You should have used NamedPipe binding for this kind of need. Hosting in windows service does not exist for this purpose.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900