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

.net frameworkngenservices

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:

The Microsoft .NET Framework NGEN v4.0.30319_x64 service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Why am I not able to start this service?

Best Answer

This is a service that is started and stop "as-needed" by the ngen (Native Image Generator) executable. According to this MSDN page, the service typically starts in conjunction with a installation program (installer) or by direct interaction with the ngen executable.

As far as I know, the behavior you described is standard/correct behavior.

Related Question