Well, I will try to make it as direct as possible. I am using VB.Net in VS2010, I am trying to host the WCF service myself. (This is actually in the Windows service, but I'm trying to do it with a simple console application. The code below is where the TCP / IP addresses are directly entered. The WCF service itself is simply a renamed DEFAULT new WCF service project.
Dim host As New ServiceHost(GetType(TestService))
Dim tcpb As New NetTcpBinding()
tcpb.PortSharingEnabled = True
host.AddServiceEndpoint( _
GetType(ITestService), _
tcpb, _
"net.tcp://localhost:62020/TestWcfService/" _
)
host.Open()
Console.ReadKey(True)
host.Close()
I donβt think I can make it much easier .. is there anything special I need to do to make the port actually bind? when I start netstat -a, it does not show the listening port on 62020. I really am in it. [/ p>
. WCF, IIS , Windows. WCF . , (-). WCF ( ), . **** - , , .