locked
Microsoft .NET Framework NGEN v4.0.30319_X86 not started error in server logs. RRS feed

  • Question

  • Not sure what the correct etiquit is for this. The thread I asked my question in last Friday was previously closed by a moderator, and I suspect that is why it's not getting answered.  Since I posted, there have been enough other people with the same issue posting to push it into the popular thread list.

    So I'm starting a new thread.  (Not sure what would be a better procedure.)

    Original thread is here:

    http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/4cb39c00-b038-45b2-bf38-2016a906570e

    Here was my question:

    This service was installed in a recent auto update on my SBS 2003 server and it was installed with automatic startup.  But it just starts up and shuts right back down.  The same occurs on my XP dev machines.

    Because of that my daily server report is showing:

    Auto-started Services Not Running
    Service Name Microsoft .NET Framework NGEN v4.0.30319_X86
    Total auto-started services not running: 1
    In normal conditions, these services should be running.
    For details, it is recommended that you review errors in the
    Event log related to the service.

     

    It's a annoyance to have that in the daily server reports.  (I want to see all green items)

    Since starting up and immediately shutting down, appears to be the normal behavior for this service. (That's also what it does on XP. And the .net 4 full installation verifies as being OK.)

    Would there be a downside if we turned that service to manual startup is the question?

     


    John Fenton
    Wordmasters Direct Mail and Data Processing Services
    Tuesday, June 29, 2010 9:26 PM

Answers

  • Hi all,

    Here is one KB published that might shed some light on your concern.
    Please see: http://support.microsoft.com/kb/2290390

    Hope this helps!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Ring0 Friday, July 30, 2010 3:29 AM
    • Marked as answer by YiChun Chen Friday, July 30, 2010 3:46 AM
    Tuesday, July 27, 2010 7:26 AM
  • Hi Wodahs,

    Based on your description, do you mean that you got the error message as the following screen shot?
    http://2efoga.bay.livefilestore.com/y1pUfqRIOO1oQD_4iohURUDYfAbSUuNihhhXbM3M5vjiT8hMUPICiW_U64B-Vu7mejYFrXn3RupIeSnnQoaBqoK81eDWhbnKvHY/NET%20NGen_SBS2003.png?psid=1

    One more question, did you install KB974417 via Windows Update on your server?

    Firstly, we should know NGen service of .NET Framework.

    NGen service allows the developer to defer the installation and update of native images to periods when the computer is idle.

    The NGen queue supports a simple priority scheme to help establish the order in which applications are pre-compiled when submitting multiple jobs to the queue. The priorities also determine whether the service should wait for idle time on the machine to do the background compilation.
    When the service detects that there are no more actions queued, it resets its status so that it will not restart the next time the computer is booted, and then it shuts itself down.

    This means that this service will be shut down automatically if it finds that no action is needed. We have confirmed it with our product team. This behavior is by design.

    Moreover, by default, .NET 4.0 NGen service is installed to start automatically.

    That's why you get the error message as above.

    For your concern on SBS 2003 Server and .NET Framework 4.0 NGen service, we have just confirmed it with our group.
    It is a known issue that need to be investigated and will try to find a workaround. I will let you know if we have any update for it.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Wednesday, July 7, 2010 2:44 AM
    Wednesday, June 30, 2010 10:01 AM

All replies

  • I am having this exact same issue on SBS 2003 R2 right after recent update. 
    Wednesday, June 30, 2010 1:46 AM
  • Same issue here... this is annoying...
    Wednesday, June 30, 2010 6:21 AM
  • Me too, anyone have an answer to this?
    Wednesday, June 30, 2010 7:36 AM
  • Hi Wodahs,

    Based on your description, do you mean that you got the error message as the following screen shot?
    http://2efoga.bay.livefilestore.com/y1pUfqRIOO1oQD_4iohURUDYfAbSUuNihhhXbM3M5vjiT8hMUPICiW_U64B-Vu7mejYFrXn3RupIeSnnQoaBqoK81eDWhbnKvHY/NET%20NGen_SBS2003.png?psid=1

    One more question, did you install KB974417 via Windows Update on your server?

    Firstly, we should know NGen service of .NET Framework.

    NGen service allows the developer to defer the installation and update of native images to periods when the computer is idle.

    The NGen queue supports a simple priority scheme to help establish the order in which applications are pre-compiled when submitting multiple jobs to the queue. The priorities also determine whether the service should wait for idle time on the machine to do the background compilation.
    When the service detects that there are no more actions queued, it resets its status so that it will not restart the next time the computer is booted, and then it shuts itself down.

    This means that this service will be shut down automatically if it finds that no action is needed. We have confirmed it with our product team. This behavior is by design.

    Moreover, by default, .NET 4.0 NGen service is installed to start automatically.

    That's why you get the error message as above.

    For your concern on SBS 2003 Server and .NET Framework 4.0 NGen service, we have just confirmed it with our group.
    It is a known issue that need to be investigated and will try to find a workaround. I will let you know if we have any update for it.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Wednesday, July 7, 2010 2:44 AM
    Wednesday, June 30, 2010 10:01 AM
  • Thank you for having this looked in to!

    I get the message you show if I try to manually start the service.

    That's not a real big issue since it appears to be by design.

    The issue here is that SBS administrators get a daily "Server Performance Report - SBS2" in our email.

    Most of us do read that report and try and make sure we have all green items.  This issue is causing a "Auto-started Services Not Running" error, which is a red item.  Red = urgent, attention required, so every day we have to look into it to ensure that it is only the NGen service that is throwing that error.

    The "Performance Logs and Alerts" service does behave the same as the NGen service, but doesn't throw the not running error, so hopefully there is someway to kill off this message.

    Looking forward to seeing what they come up with.


    John Fenton
    Wordmasters Direct Mail and Data Processing Services
    Wednesday, June 30, 2010 8:53 PM
  • I concur with Wodahs...exactly as he explains it.  I am getting red alert from SBS 2003 Monitoring and Reporting:

    Auto-started Services Not Running: 1

    Service Name Microsoft .NET Framework NGEN v4.0.30319_X86

    It's bothersome because I have been conditioned to review these...it's cruel and Pavlovian.   :)

     

     

     

     

     

    Thursday, July 1, 2010 5:27 AM
  • Hi Wodahs,

    It's my pleasure!

    I have contacted the engineers in our group. They will let me know the updates of this issue. I will update this case as far as I get any suggestion.

    Have a nice day!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Thursday, July 1, 2010 6:14 AM
  • Any word on this?

     

    Thanks

    Monday, July 5, 2010 3:42 AM
  • Hi all,

    We need some time to check the issue. I will let all of you know the updates of this issue.

    Have a nice week!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, July 5, 2010 6:22 AM
  • Hi all,

    I've marked my reply as answer since we have confirmed that this is one known issue. We still can continue our discussion here and I will let you all of you know the updates.

    If you have any concern, please feel free to let me know.

    Have a nice week!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, July 7, 2010 2:44 AM
  • Hi. I'm not having this exact problem, but another really annoying problem with this service in XP. The service starts up fine, nothing in the error log. However, when it is enabled, it adds about 1 minute to my startup time (between when I click my username to log in and when I finally see the taskbar, desktop, etc.). I actually reinstalled windows completely after doing a clean install since I wasn't able to figure out what the cause of this was. Now I have narrowed it down to the Microsoft .NET Framework NGEN v4.0.... service. Am I the only one having this problem. I'm asking here as I haven't been able to find any other solutions. I can't be alone with this as the same issue re-occurs after a clean install of windows twice. Is there something that could be causing this service to delay my startup time that much, or do I really even need this service enabled? For now I've disabled it.
    Thursday, July 15, 2010 9:33 PM
  • OK, since MS isn't in any hurry to fix this, can I just uninstall this junk or what?

     

    Thanks

    Saturday, July 17, 2010 12:37 AM
  • I'm experiencing the same delay.  It appears to be caused by the service trying check the Certificate Revocation List (CRL)

    If you are behind a firewall/proxy it will try 2 times, 30 seconds between each attempt.

    Setting the service to manual is the only workaround I have found so far.

    Tuesday, July 20, 2010 1:39 PM
  • Hi all,

    I got some feedback on this issue. Here is one workaround that you can have a try:

    Browse NGEN 4 service name from services console and add to "SERVICES_TO_IGNORE"  segment: <add key="SERVICES_TO_IGNORE" value="SysmonLog;clr_optimization_v4.0.30319_32" /> in C:\inetpub\monitoring\web.config file

    Hope this helps!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, July 21, 2010 2:37 AM
  • Dear MSFT,

    Can we please have someone who is not a script kiddie provide an engineering solution to this issue. Or, is all hope lost to the 'cloud'. Sigh...

    Thank you.

     

     


    KeBugCheck(42);
    Wednesday, July 21, 2010 12:37 PM
  • Hi all,

    I got some feedback on this issue. Here is one workaround that you can have a try:

    Browse NGEN 4 service name from services console and add to "SERVICES_TO_IGNORE"  segment: <add key="SERVICES_TO_IGNORE" value="SysmonLog;clr_optimization_v4.0.30319_32" /> in C:\inetpub\monitoring\web.config file

    Hope this helps!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.


    Can you please explain this a little clearer. As you do not say, where in the services console we are to add this. I too would like to stop this error on all my servers.

    Thanks

    Chuck Brunelle

    Wednesday, July 21, 2010 6:05 PM
  • Hi Ring0 & Chuck,

    Thank you for your post.

    This forum is for the support of .NET Framework installation. If you have any concern like you cannot install .NET Framework, I can provide you more useful help here.
    Frankly speaking, I'm not familiar with SBS 2003 server. The workaround is what I got via the email.
    However, here is new updated information on this issue. The team is ready to publish the detail information in a KB article. If it is published, I will paste the link here to let you know the detail workaround.

    Thank you for your understanding!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Thursday, July 22, 2010 7:48 AM
  • Simple question: what purpose does this service have in a standard production environment

    Simple question 2: can we do without is and if so how can we get rid of it?

    BR, Hans

    PS. Since thy are stopped anyway I decided to get rid of them (there was also a V2 service! Same condition)

    Thursday, July 22, 2010 3:35 PM
  • Hi Hnas,

    For more information on NGEN service, please check the following link:
    http://msdn.microsoft.com/en-us/magazine/cc163610.aspx
    http://msdn.microsoft.com/en-us/magazine/cc163808.aspx

    Hope this helps!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, July 23, 2010 7:34 AM
  • Hi all,

    Here is one KB published that might shed some light on your concern.
    Please see: http://support.microsoft.com/kb/2290390

    Hope this helps!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Ring0 Friday, July 30, 2010 3:29 AM
    • Marked as answer by YiChun Chen Friday, July 30, 2010 3:46 AM
    Tuesday, July 27, 2010 7:26 AM
  • Thats better.

    Many thanks.

     


    KeBugCheck(42);
    Friday, July 30, 2010 3:30 AM
  • Hi Ring0

    It's my pleasure!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, July 30, 2010 3:46 AM
  • Thanks - but I have no "SERVICES_TO_IGNORE" section in Web.config!!!!!!!!!!!!!!!!!!!!!!!

    Oh, dear... Back to the drawing board. :-(

    Help!!!

    By the way how do I un-propose as answer?

    This is for sure not my lucky week. See: http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/baecf306-01fa-44f5-b1bc-922c4b2b28ae

    Will I get an answer to that? I don't think so. Sigh....

    Is it just me. Maybe I need therapy?  Or is it true - have all the C/C++ engineers and core Windows GDI people abandoned us... A big sigh..... & cry... Wahhhh...

     


    KeBugCheck(42);
    Friday, July 30, 2010 12:37 PM
  • hello Experts... i have one concern

    Is above steps given on http://support.microsoft.com/kb/2290390 will work with Microsoft Windows Server 2008 Standard Edition With SP2.

    Pls suggest..

    Tuesday, August 10, 2010 5:53 AM
  • Hi HPLPB,

    i have the same Problem, fresh installed XP SP3 + .NET 3.5 SP1 Client Profile + .NET 4.0 Client Profile ... my Desktop appears imediately but i have to wait for 1 Minute or so until the Service Microsoft .NET Framework NGEN v4.0.30319_X86 has started, as long as it is "starting" i cannot do much, explorer doesnt show files, internet explorer does not work ...

    :-(

    Friday, September 17, 2010 11:48 PM
  • This may be realted to Symantec Endpoint Protection, it's a known issue with the latest release.

    http://www.symantec.com/connect/forums/sep-ru5-0xc0000005-error

    Try this command to work around the issue:

    sc config sysplant start= disabled

    This will stop the Symantec service causing the issue, but the service will likely be enabled again after a reboot based on Symantec policies.  Running the command above will at least allow the service to start so you can install things like SQL service packs, Visual Studio service packs, or .NET updates.

    Tuesday, September 21, 2010 5:26 PM
  • Help!  Whenever I log into my Dell Laptop, I get the following pop up error message:

    "To run this application, you first must install one of the following versions of the .NET Framework v4.0.30319

    Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework"

    There is an ok box to check.  When I close the popup by either hitting OK or hitting the X, it continues to pop up a couple times and then goes away and my computer continues to work as usual. 

    I am concerned that it is affecting it b/c my computer is running much slower.  In reading some of these threads, it seems like installing .NET causes problems and messes up the computer.

    I don't know what my next step should be.  I am not that savy when it comes to the inner workings of a computer (I am a whiz on using the computer though :)   

    Please, any suggestions would be much appreciated.

     

    Saturday, October 16, 2010 3:05 PM
  • Help!  Whenever I log into my Dell Laptop, I get the following pop up error message:

    "To run this application, you first must install one of the following versions of the .NET Framework v4.0.30319

    Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework"

    There is an ok box to check.  When I close the popup by either hitting OK or hitting the X, it continues to pop up a couple times and then goes away and my computer continues to work as usual. 

    I am concerned that it is affecting it b/c my computer is running much slower.  In reading some of these threads, it seems like installing .NET causes problems and messes up the computer.

    I don't know what my next step should be.  I am not that savy when it comes to the inner workings of a computer (I am a whiz on using the computer though :)   

    Please, any suggestions would be much appreciated.

     


    I am having the same exact issue.
    Friday, October 22, 2010 2:10 PM
  • Basically, I re-install .NET framework 4.0 and it fixed my issue.

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en

    Hope this help

    • Proposed as answer by Crazyd Tuesday, September 25, 2012 5:25 AM
    Saturday, November 6, 2010 11:26 PM
  • Are there anymore information tothis problem?

    I'm having the same problem with Microsoft .NET services_name= clr_optimization_v4.0.30319_32

    But I need this service to be runnig, cause I have this program which is depended on it to work!

    This is what I can when I try to run my program:

    "To run this application, you first must install one of the following versions of the .NET Framework v4.0.30319

    Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework"

    I've reinstalled this to many times now,and it still won't work!

    I've been hitting "sc start  clr_optimization_v4.0.30319_32" in the cmd like a maniac, but it won't start!!!

    Help needed, anyone knows how to solve this properly?

    PP

     

    Wednesday, October 26, 2011 8:58 AM
  • Was their an answer to the question from the original post?  "Could there be a downside if we turned that service to manual startup is the question??
    Monday, January 23, 2012 10:30 PM
  • All I had to do to resolve my issue was Repair the Framework.  (Download will allow you to repair it.)
    Tuesday, September 25, 2012 5:26 AM
  • I "fixed" this on 2008 and 2008 R2 by installing .NET 4.5. 
    Monday, April 22, 2013 12:34 PM
  • The KB fixed the issue on an SBS 2003 I manage.  I used the "FixIt" script to handle the .NET service, but I used the manual steps provided to add the Google Update Service (gupdate). Just be sure to read the manual steps carefully as I started out by ADDING a "services to ignore" line which then caused the first "ignore" line to be recognized... that line now reads as follows:

    <add key="SERVICES_TO_IGNORE" value="SysmonLog;clr_optimization_v4.0.30319_32;gupdate"/>

    NOTE: this line is one line in the web_config file, it should not be wrapped if it appears that way in this post. Eitherway, consult the KB article supplied by Yichun.

    Thanks Yichun for providing this.

    too bad this forum keeps changing the font html on me... I gave up fixing my sentences.

    -- 
    Schyler Jones (schyler.jones@sdjcs.com)
    SDJ Computer Solutions
    Hillsboro, NH


    Monday, August 19, 2013 12:26 PM
  • Simple fix. set the service to manual. This will let the framework start it when it needs to, and monitor apps won't pick it up and report an error if it's not running.
    • Proposed as answer by TorstenMeyer Tuesday, May 26, 2015 10:52 PM
    Monday, July 7, 2014 10:43 PM
  • http://support2.microsoft.com/kb/2749615/en-us
    Sunday, September 28, 2014 11:59 AM
  • it's because microsoft no longer supports your system
    Saturday, July 23, 2016 3:02 PM