Skip to content

System.InvalidOperationException: The instance of entity type 'SessionDeviceMetadata' cannot be tracked because another instance with the same key value for {'LoggingSessionID', 'DeviceSerialNo'} is already being tracked. When attaching existing entities, ensure that only one entity ins... #496

@sentry

Description

@sentry

Sentry Issue: DAQIFI-DESKTOP-9

System.InvalidOperationException: The instance of entity type 'SessionDeviceMetadata' cannot be tracked because another instance with the same key value for {'LoggingSessionID', 'DeviceSerialNo'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.
  File "Loggers\LoggingManager.cs", line 140, in void LoggingManager.OnActiveChanged(bool oldValue, bool newValue)
...
(6 additional frame(s) were not displayed)

This issue was automatically created by Sentry via GitHub Alert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions