Server Error in '/' Application.

Failed to listen on prefix 'http://+:8888/metrics/' because it conflicts with an existing registration on the machine.

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.Net.HttpListenerException: Failed to listen on prefix 'http://+:8888/metrics/' because it conflicts with an existing registration on the machine.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpListenerException (0xb7): Failed to listen on prefix 'http://+:8888/metrics/' because it conflicts with an existing registration on the machine.]
   System.Net.HttpListener.AddAllPrefixes() +371
   System.Net.HttpListener.Start() +366
   Prometheus.MetricServer.StartServer(CancellationToken cancel) +66
   Prometheus.MetricHandler.Start() +48
   GajMarket.Web.MvcApplication.Application_Start() in C:\agent\_work\11\s\Presentation\GajMarket.Web\Global.asax.cs:133

[HttpException (0x80004005): Failed to listen on prefix 'http://+:8888/metrics/' because it conflicts with an existing registration on the machine.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Failed to listen on prefix 'http://+:8888/metrics/' because it conflicts with an existing registration on the machine.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714


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