Questions tagged [ngen]

The Native Image Generator (Ngen) is a tool that improves the performance of managed applications.

8 questions
11
votes
8 answers

ngen.exe is constantly using CPU

I recently installed Windows 7. This was a clean install (i.e. not an upgrade from another version of Windows), but I did install a bunch of other programs. All mainstream applications - nothing wacky. Since then, my CPU usage has been constantly at…
teedyay
  • 328
6
votes
2 answers

Why won't the Microsoft .NET Framework NGEN v4.0.30319_x64 service start?

I just installed the .NET 4.0 framework and see Microsoft .NET Framework NGEN v4.0.30319_x64 listed in services.msc. It is set for Automatic-Delayed Start. However, it is in a stopped state and when I try to start the service I get the message:…
Pragmatic Coder
  • 163
  • 1
  • 1
  • 3
5
votes
3 answers

What are these folders in the root of my drive?

The following folders keep showing up: C:\Default\ C:\NativeImages\ They both have a ton of folders in them witha bunch of html files in each folder. I'm assuming this has something to do with NGEN because of the NativeImages folder. How do I get…
3
votes
4 answers

Recurring crash: "An unhandled win32 exception occurred in mscorsvw.exe". How to diagnose/fix?

I recently got a new PC at work and had to reinstall development tools, etc. The PC runs Windows XP (blech), and I've got Visual Studio 2010 and .NET Frameworks 2.0, 3.5, and 4.0 installed, each with all current service packs and patches. Windows…
Chris W. Rea
  • 10,978
1
vote
0 answers

Warning while running NGen: "Cannot hardbind to System.Core"

While running ngen on the dll's that constitute our product, one in particular comes up with this message: 1> Compiling assembly C:\folder\component.dll (CLR v4.0.30319) ... 1>WARNING: Cannot hardbind to System.Core, Version=4.0.0.0,…
rojomoke
  • 294
1
vote
1 answer

Keep files in Windows' file system cache?

I noticed that even the most basic Winform application (ie. just a window, with no extra modules) still takes several seconds to load after creating its machine code equivalent through Ngen. I guess then that the bottleneck is loading the .Net…
0
votes
0 answers

ngen.exe uses 60% CPU

ngen.exe in Process Explorer Sometimes, out of the blue, my Laptop starts using up to 60% CPU for a while, 15 min or so or more. It turns out, that there is a process called ngen.exe which keeps starting and stopping. This is only visible with…
Hans
  • 49
0
votes
2 answers

taskhostw.exe spawns multiple ngen.exe's, consuming tons of CPU and RAM

I'm on Windows 10 Enterprise (v1607) and I've got the taskhostw.exe process spawning lots of ngen.exe processes which eat up CPU and overheat my machine. I cannot kill either of these in Process Explorer (access denied), so I'm looking for advice on…