This is the code part, where throws error
_traceEventSession = new TraceEventSession(SessionName, TraceEventSessionOptions.Create);
_traceEventSession.EnableProvider(
ClrTraceEventParser.ProviderGuid,
Microsoft.Diagnostics.Tracing.TraceEventLevel.Verbose,
(ulong)(ClrTraceEventParser.Keywords.Threading | ClrTraceEventParser.Keywords.Contention));
Error throws at calling EnableProvider
In local environment all ok and I don't use KernelProvider, so I really can't understand why it's happen. Also I added all permissions for IIS_IUSRS in .NET Common Language Runtime provider section, but it didn't help at all.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…