You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log error throws a null ref with an irrelevant message:
Data collector 'Event Log' message: Data collector 'Event Log' threw an exception during type loading, construction, or initialization: System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateArg.NotNull[T](T arg, String parameterName)
at Microsoft.VisualStudio.TestPlatform.Common.DataCollector.TestPlatformDataCollectionLogger.LogError(DataCollectionContext context, String text, Exception exception)
at Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector.ConfigureEventLogNames(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
at Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector.Initialize(XmlElement configurationElement, DataCollectionEvents events, DataCollectionSink dataSink, DataCollectionLogger logger, DataCollectionEnvironmentContext dataCollectionEnvironmentContext)
The text was updated successfully, but these errors were encountered:
https://github.com/Microsoft/vstest/blob/7b6248203164f8ea821f6795632bd22e0b69afb0/src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogDataCollector.cs#L577
<DataCollectors> <DataCollector uri="datacollector://microsoft/EventLog/2.0" assemblyQualifiedName="Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector, Microsoft.TestPlatform.Extensions.EventLogCollector, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Event Log"> <Configuration> <Setting name="EventLogs" value="Application,System,E2EFactory" /> </Configuration> </DataCollector>
Log error throws a null ref with an irrelevant message:
Data collector 'Event Log' message: Data collector 'Event Log' threw an exception during type loading, construction, or initialization: System.ArgumentNullException: Value cannot be null.
Parameter name: context
at Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateArg.NotNull[T](T arg, String parameterName)
at Microsoft.VisualStudio.TestPlatform.Common.DataCollector.TestPlatformDataCollectionLogger.LogError(DataCollectionContext context, String text, Exception exception)
at Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector.ConfigureEventLogNames(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
at Microsoft.TestPlatform.Extensions.EventLogCollector.EventLogDataCollector.Initialize(XmlElement configurationElement, DataCollectionEvents events, DataCollectionSink dataSink, DataCollectionLogger logger, DataCollectionEnvironmentContext dataCollectionEnvironmentContext)
The text was updated successfully, but these errors were encountered: