Quantcast
Viewing all articles
Browse latest Browse all 9076

AddressAlreadyInUseException with TCP Event configuration

Hi all,

Having some troubles with getting TCP event communication going properly. Well, it works good, but every time the application needs to restart, for example when the web.config is saved I get the dreaded:

System.ServiceModel.AddressAlreadyInUseException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the URI is already registered with the service.

It only last for between 20-60 sec, but that is enough for it to be an issue in production.

Portsharing is turned on and I have disabled overlapping application pool recycling.


The following is the service model config:

<system.serviceModel><services><service name="TodayNetwork/EPiServer.Events.Remote.EventReplication"><endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="netTcpBinding"
          bindingConfiguration="RemoteEventsBinding" address="net.tcp://localhost:13000/RemoteEventService"/></service><service name="TripleMNetwork/EPiServer.Events.Remote.EventReplication"><endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="netTcpBinding"
          bindingConfiguration="RemoteEventsBinding" address="net.tcp://localhost:13001/RemoteEventService"/></service><service name="Dirt/EPiServer.Events.Remote.EventReplication"><endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="netTcpBinding"
          bindingConfiguration="RemoteEventsBinding" address="net.tcp://localhost:13002/RemoteEventService"/></service></services><client><endpoint name="TodayNetwork.PI" address="net.tcp://172.22.240.45:13000/RemoteEventService" binding="netTcpBinding"
        bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication"/><endpoint name="TripleMNetwork.PI" address="net.tcp://172.22.240.45:13001/RemoteEventService" binding="netTcpBinding"
        bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication"/><endpoint name="Dirt.PI" address="net.tcp://172.22.240.45:13002/RemoteEventService" binding="netTcpBinding" bindingConfiguration="RemoteEventsBinding"
        contract="EPiServer.Events.ServiceModel.IEventReplication"/><endpoint name="TodayNetwork.PD1" address="net.tcp://172.22.240.44:13000/RemoteEventService" binding="netTcpBinding"
        bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication"/><endpoint name="TripleMNetwork.PD1" address="net.tcp://172.22.240.44:13001/RemoteEventService" binding="netTcpBinding"
        bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication"/><endpoint name="Dirt.PD1" address="net.tcp://172.22.240.44:13002/RemoteEventService" binding="netTcpBinding" bindingConfiguration="RemoteEventsBinding"
        contract="EPiServer.Events.ServiceModel.IEventReplication"/></client><bindings><netTcpBinding><binding name="RemoteEventsBinding" portSharingEnabled="true"><security mode="None" /></binding></netTcpBinding></bindings><behaviors><serviceBehaviors><behavior name="DebugServiceBehaviour"><serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors></behaviors><serviceHostingEnvironment aspNetCompatibilityEnabled="true" /></system.serviceModel>

    


Viewing all articles
Browse latest Browse all 9076

Trending Articles