This is the code part, where throws error
_traceEventSession = new TraceEventSession(SessionName, TraceEventSessionOptions.Create); _traceEventSession.EnableP