The program can't start because api-ms-win-core-com-l1-1-0.dll is missing
Win 7 64
TraceEventSession traceEventSession = new TraceEventSession(KernelTraceEventParser.KernelSessionName);
traceEventSession.EnableKernelProvider(KernelTraceEventParser.Keywords.NetworkTCPIP);
System.ComponentModel.Win32Exception:“The specified module could not be found”
I have installed visual c++ redistributable 2019
I tried version 3.0.2 and version 2.0.77, but they didn't work.
If the version < 2.0.75 is OK, but it is weird that when I upgrade to 2.0.75 and then downgrade to 2.0.74, this version of 2.0.74 will not work, unless I create a new project.
But when I publish as ClickOnce, is wrong again.
I suspect that this is due to missing dependencies. Unfortunately, Windows 7 is no longer supported. If a particular version of TraceEvent works, but the next does not, it's likely because TraceEvent took a dependency on a version of KernelTraceControl.dll that is no longer compatible with Windows 7. A workaround you could use is to stay on the old version. Out of curiosity, do you have this problem on Win10 or later?