Click here to Skip to main content
15,883,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Guys,

I have a windows form project, which is consuming a WCF Service which is a separate project in the same solution.
Now i created a setup for this windows form application and installed it.
When i run that installed application, it doesn't host the service.
How can I host this WCF service with the setup installation of that application? or is there any other way to fix this issue.

Any help would be appreciated
Posted

1 solution

The WCF Service needs a hosting environment and must be hosted separately in IIS, Windows Service or at least as a console application. Your set up will not create a hosting environment for your WCF Service unless you create a separate hosting platform.

May be you can consider the following ways.

1. If you want to host it IIS, then you can create a SVC file for your service and modify your SETUP to install the WCF service in IIS. OR,
2. You can create a Windows Service, Installer classes and host the WCF service as a WINDOWS Service.

Both point 1 and 2 are possible with SETUP installation and whether to go with point 1 or 2, depends on your environment.

Hope this clears.
 
Share this answer
 

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