This post originated from an RSS feed registered with .NET Buzz
by Oliver Sturm.
Original Post: WCF: Transport level security makes service hang on Open()
Feed Title: Oliver Sturm's weblog
Feed URL: https://oliversturm.com/blog/blog/archives/category/programming/net/feed/
Feed Description: General musings and programming stuff, .NET category
A weird thing… I was working on a WCF sample program today and I was creating my ServiceHost instance from code, like this:
Uri baseAddress = new Uri("net.tcp://localhost:7465/");
singleton = new HelloWorldClassServerProxy(new HelloWorldClass());
ServiceHost serviceHost = new ServiceHost(singleton, baseAddress);
Binding binding = new NetTcpBinding( );
serviceHost.AddServiceEndpoint(typeof(IHelloWorldContract), binding, "HelloWorld");
serviceHost.Open( );
The [...]