I had a problem with wcf extensions working with multiple boot nodes of the host itself. Ninject fine is created with one of my services (per call), but when I add another, I get an exception that ChannelDispatcher cannot open its IChannelListener, an internal exception indicates that registration is already used for URI 'net.tcp: // local :. 901 / MyService
My registration code is as follows:
var myService= NinjectWcfConfiguration.Create<MyService, NinjectServiceSelfHostFactory>(); _myServiceHost= new NinjectSelfHostBootstrapper(() => _kernel, myService); var myService2= NinjectWcfConfiguration.Create<MyService2, NinjectServiceSelfHostFactory>(); _myService2Host= new NinjectSelfHostBootstrapper(() => _kernel, myService2); _myServiceHost.Start(); _myService2Host.Start();
Both services have the correct sections in the configuration file, and both have different endpoint URIs with different ports. The same configuration works fine if I do everything manually.
Does anyone have a key? Bit......
Greetings
c # ninject wcf
user303754
source share