Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[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() +591
   System.ServiceModel.Channels.SharedListenerProxy.Open(Boolean isReconnecting) +574
   System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting) +101
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token) +276
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpen() +64
   System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) +760
   System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) +166
   System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout) +101
   System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout) +56
   System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout) +60
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +377
   System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +87
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +377
   System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +130
   EPiServer.ServiceModel.GenericWcfServiceHost`1.OnOpen(TimeSpan timeout) +95
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +377
   EPiServer.Events.Providers.WcfEventProvider.CreateEventServiceHost() +252
   EPiServer.Events.Providers.WcfEventProvider.InitializeServiceHost() +32
   EPiServer.Events.Providers.WcfEventProvider.<InitializeAsync>b__13_0() +30
   System.Threading.Tasks.Task.InnerInvoke() +208
   System.Threading.Tasks.Task.Execute() +73

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

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +205
   EPiServer.Events.<>c__DisplayClass6_0.<Initialize>b__1(Object sender, EventArgs args) +45

[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) +221
   System.Delegate.DynamicInvokeImpl(Object[] args) +159
   EPiServer.Framework.Initialization.InitializationEngine.OnInitComplete() +263
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +208
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +423
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +187
   EPiServer.Global..ctor() +42
   epi11.EPiServerApplication..ctor() +37
   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) +194
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +100
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1485
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +298
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +26
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +182
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

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


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0