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() +560
   System.ServiceModel.Channels.SharedListenerProxy.Open(Boolean isReconnecting) +397
   System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting) +101
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token) +272
   System.ServiceModel.Channels.SharedTcpTransportManager.OnOpen() +60
   System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) +652
   System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) +161
   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) +335
   System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +84
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +335
   System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +130
   EPiServer.ServiceModel.GenericWcfServiceHost`1.OnOpen(TimeSpan timeout) +89
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +335
   EPiServer.Events.Providers.WcfEventProvider.CreateEventServiceHost() +357
   EPiServer.Events.Providers.WcfEventProvider.InitializeServiceHost() +32
   System.Threading.Tasks.Task.Execute() +73

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

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

[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) +160
   EPiServer.Framework.Initialization.InitializationEngine.OnInitComplete() +325
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +186
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +292
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +187
   EPiServer.Global..ctor() +83
   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) +197
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +100
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1538
   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) +300
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +359

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


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