Filter custom message from Visual Studio 2015 output window

At some point in the last couple of months a lot of messages appeared in lines

Event 7 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).
Event 10 was called with 5 argument(s) , but it is defined with 6 paramenter(s).

started mailing my Visual Studio output window, which makes it difficult to find the actual trace and debug messages. Where do these messages come from and how to disable them?

To solve this problem, I tried several things.

  • Most answers point to the setting of checkboxes in the output window. If I remove "Program Exit", the problem messages will disappear, but so will the messages that I want to save.
  • I tried to create a custom one TraceListenerand set a breakpoint in the methods Writeand WriteLinein the hope that the call stack will tell me where the messages were generated from. I found that these messages do not come from typical methods Diagnotics.Debugor Diagnotics.Trace.
  • I tried redirecting the console through Console.SetOut()to user TextWriterto set breakpoints. Again, I could not find anything.

Any help would be appreciated.

+6
source share
2 answers

@Sinatr, , , . , :

, -, Application Insights Stackify Prefix, StackOverflow, .

+4

Ive , , .

mcorlib.dll 54673 dll (32- ): {0} {1}, {2} paramenter (s)

EventSource_EventParametersMismatch

\diagnostics\eventing\eventsource.cs WriteToAllListeners https://referencesource.microsoft.com/#mscorlib/system/diagnostics/eventing/eventsource.cs,7c04b58f26d81951

+4

Source: https://habr.com/ru/post/1015759/


All Articles