I have a WCF service console application. When I run it from within Visual Studio, it opens its tcp port and I can use it from a web site running on the same server. However, when I run the console app directly from a command prompt, it does not open the port. I don’t get any errors, but netstat does not show the port open and the web site errors on calls to the service.
The server is running Windows Server 2003 and Windows Firewall is off.
What piece of the WCF puzzle is missing when I run the console app outside of VS?
You have to create a
ServiceHost.http://msdn.microsoft.com/en-us/library/system.servicemodel.servicehost.aspx
Visual studio creates a host for you automatically when debugging.