perfview icon indicating copy to clipboard operation
perfview copied to clipboard

The program can't start because api-ms-win-core-com-l1-1-0.dll is missing

Open a442509097 opened this issue 3 years ago • 3 comments

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.

a442509097 avatar Jul 16 '22 05:07 a442509097

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.

a442509097 avatar Jul 16 '22 06:07 a442509097

Capture But when I publish as ClickOnce, is wrong again.

a442509097 avatar Jul 16 '22 12:07 a442509097

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?

brianrob avatar Jul 26 '22 00:07 brianrob