Windows server 2003 SP2,
today installing many windows updates, I noticed that 2 PC have this errors in application event log:
".NET Runtime Optimization Service (clr_optimization_v2.0.50727_32) - Tried to start a service that wasn't the latest version of CLR Optimization service. Will shutdown"
1. Uninstall update KB976569 manually through Add/Remove programs.
2. Download KB974417 for your platform and install it.
3. Re-install KB976569
but I hadn't KB976569so I tried to download and install it.
The problem apparently went away ... but checking in services.msc console, I noticed that update KB976569, modify the service startup type to MANUAL.
Is it correct ? What can I check now ?
As you mentioned that “I noticed that update KB976569, modify the service startup type to MANUAL”, so I would like to know which service had been set to MANUAL?
By the way, did you get any other issue after you perform the suggestion in the link you provided?
the service set to manual from update KB976569 is: .NET Runtime Optimization Service v2.0.50727_X86 [C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorsvw.exe]
If I try to start it, I get this error
Trying to install the update KB974417 result into "None of the products that are addressed by this software update are installed on this computer. Click Cancel to exit setup." so I can't install it.
Since the server is a web server, should I be concerned about this service not running ? If yes, how can I do to make it run ?
I have to add that during updates install, also framework 4 was installed.
Just from my observation (and I could be completely wrong here since no confirmation or feedback from microsoft).
Did you install .Net 4.0?
(I installed 4.0 and already had 1.0 and 2.0 on my server machine)
Looking at the Services, I notice a new service : Microsoft .NET Framework NGEN v4.0.30319_X86
The service in .NET Runtime Optimization Service v2.0.50727_X86 and the service identified above: use the mscorsvw.exe file in the executable path.
From the event log and clicking the ...microsoft.com/fwlink/events.asp (listed in the description of Event properties) the Offending File Name is mscoree.dll. If I understand correctly, mscorsvw utililze the mscoree file.
The place where the mscoree.dll file is listed is in the c:\Windows\System32 folder. Check the properties of this file and check the version. The Version would be 2.0.5xxxx for the .Net Runtime v2.0.50727 otherwise you may see 4.031106.0 for the other version.
With the .NET 4.0 installation, it seems the Services for the .NET Runtime Optimization is not needed anymore, hence it is set to Manual. Therefore the Microsoft .NET Framework NGEN v220.127.116.11_X86 would be the latest and current optimization which is set to Automatic. I am guessing this new service is to be used in place of the previous service that still exist in the services list.
I hope this provides some observation to assist you and any others that run across your question. Basically, I think this is not an issue other than the annoyance of the Error message from the Event log and trying to run .NET Runtime Optimization with failure. I am doing ok with both .NET version on my server and apps/web using both .NET framework seem to be behaving well.
This issue occurs because, when the Microsoft .NET Framework 4 is installed, certain components are locked or are being used until the system is restarted. These components cannot be updated until the system is restarted. Because of this, in the scenario described in the Symptoms section, the version of the shim (mscoree.dll) is the Microsoft .NET Framework version 3.5 SP1 or earlier. The installation of the Microsoft .NET Framework 4 deploys certain settings which prevent the older shim from working correctly until the shim is updated after the system is restarted. In this scenario, if you try to install another update for the Microsoft .NET Framework while the restart is pending, the update will try to use a Global Assembly Cache (GAC) deployment for the files in the update. This GAC operation requires the shim. However, because the shim is in an inconsistent state pending a restart, the GAC operation will fail. This causes the update to fail.
Just Fixit! tool...
Stebner Verifier tool also helps
yesterday, I updated my server Windows 2003 and got the same error:
Event Type: Error
Event Source: .NET Runtime Optimization Service
Event Category: None
Event ID: 1103
Time: 9:36:09 PM
.NET Runtime Optimization Service (clr_optimization_v2.0.50727_32) - Tried to start a service that wasn't the latest version of CLR Optimization service. Will shutdown
I looked to services and found one stopped service - Microsoft .NET Framework NGEN v4.0.30319_X86 - but startup type is automatic.
- Edited by janeccz Monday, May 21, 2012 6:48 AM