Try our conversational search powered by Generative AI!

Problems with Events (The TransportManager failed to listen on the supplied URI)

Vote:
 

Hi All,

I seem to have intermitent issues with events initzialization. From time to time it kills apps on all the web servers:

Error message:

[AddressAlreadyInUseException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the URI is already registered with the service.]
   System.ServiceModel.Channels.SharedListenerProxy.Register() +6996158
   System.ServiceModel.Channels.SharedListenerProxy.Open(Boolean isReconnecting) +585
   System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting) +101
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token) +259
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpen() +60
   System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) +774
   System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) +149
   System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout) +92
   System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout) +56
   System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout) +60
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +347
   System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +73
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +347
   System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +130
   EPiServer.ServiceModel.GenericWcfServiceHost`1.OnOpen(TimeSpan timeout) +107
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +347
   EPiServer.Events.Providers.WcfEventProvider.CreateEventServiceHost() +398
   EPiServer.Events.Providers.WcfEventProvider.InitializeServiceHost() +32
   System.Threading.Tasks.Task.Execute() +71

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) +1189
   EPiServer.Events.EventsInitialization.InitializeEvents(ISiteSecretManager siteSecretManager, IEventSiteRegistry eventSiteRegistry, EventProviderService eventProviderService) +294
   System.Threading.Tasks.Task.Execute() +71

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4441752
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +13844221
   EPiServer.Events.<>c__DisplayClass9_0.b__1(Object sender, EventArgs args) +46

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128
   System.Delegate.DynamicInvokeImpl(Object[] args) +153
   EPiServer.Framework.Initialization.InitializationEngine.OnInitComplete() +241
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +174
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +293
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +230
   EPiServer.Global..ctor() +104
   Goodwood.Website.EPiServerApplication..ctor() +43
   ASP.global_asax..ctor() +9

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +138
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1481
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +191
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +300
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712

Config file:





name="RemoteEventServiceEndPoint"
contract="EPiServer.Events.ServiceModel.IEventReplication"
bindingConfiguration="RemoteEventsBinding"
address="net.tcp://192.168.2.100:5000/RemoteEventService"
binding="netTcpBinding" />



















Could you please let me know if you have experienced a problem like that? Any help would be greatly appreciated.

Thanks,

Maciej

#150742
Jun 28, 2016 23:39
Vote:
 

Hi All,

I just thought it would be good to share some more information with you on this issue. The environment consists of 3 web servers and 1 db server. At the moment one is throwing the exception mentioned above every 2-3 requests. The only way to fix the problem is to restart the IIS. 

Please do let me know if I should provide any more information.

Many thanks,

Maciej

#150849
Jun 29, 2016 14:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.