Sitelet https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/508
Skip to content
This repository was archived by the owner on Jul 5, 2020. It is now read-only.
This repository was archived by the owner on Jul 5, 2020. It is now read-only.

An instance of EventSource with Guid 603def78-a1e6-5146-dba1-94a84d5a4eb9 already exists. #508

Description

We are sharing the same event source code that does not make EventSource infrastructure happy. Need to use separate names.

System.ArgumentException:
   at System.Diagnostics.Tracing.EventSource.EnsureInitialized (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Diagnostics.Tracing.EventSource.SendCommand (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Diagnostics.Tracing.EventListener.EnableEvents (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsEventListener.OnEventSourceCreated (Microsoft.ApplicationInsights, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Diagnostics.Tracing.EventSource.AddListener (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Diagnostics.Tracing.EventListener.AddEventSource (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Diagnostics.Tracing.EventSource.Initialize (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Diagnostics.Tracing.EventSource..ctor (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at Microsoft.ApplicationInsights.Common.AppMapCorrelationEventSource..ctor (Microsoft.AI.Web, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ApplicationInsights.Common.AppMapCorrelationEventSource..cctor (Microsoft.AI.Web, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.AddTargetHashForResponseHeader (Microsoft.AI.Web, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule+<>c__DisplayClass7_0.<AddCorreleationHeaderOnSendRequestHeaders>b__0 (Microsoft.AI.Web, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Util.SubscriptionQueue`1.FireAndComplete (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Web.HttpResponse.UpdateNativeResponse (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Web.HttpRuntime.FinishRequestNotification (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions