Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to fix component registration failures after installing Update Rollup 2 for Media Center 2005

How to fix component registration failures after installing Update Rollup 2 for Media Center 2005

Rate This
  • Comments 87

Since I posted the instructions for gathering setup log files for Update Rollup 2 for Media Center 2005 and asked folks to send the logs to me, I have gotten several sets of logs.  I'm still looking through some of the issues to try to figure them out (and I apologize for the slow replies to those of you who have not heard back from me yet).  There is one issue that I've now seen on multiple customer machines that I wanted to post a workaround for in case anyone else runs into it in the future.

What are the symptoms of this issue?

For this particular problem, customers have reported the following types of problems while using Media Center after upgrading to Update Rollup 2:

  • A Component Registration Failure error appears while trying to navigate to My TV.  The text of the error message states "Some of the files needed to play radio or video are missing or corrupt. Media Center component registration may have failed."
  • A Critical Process Failure error appears while trying to configure an internet connection during first run.  The text of the error message states "A critical Media Center process has unexpectedly failed. If problems persist, please restart your machine and try again, or contact technical support. Code: 3"
  • A Tuner Not Found error appears while trying to setup a TV signal during first run
  • Errors related to the Media Center Guide in the application event log

How do I know if this issue is the one affecting my machine?

The machines I have seen that have had these problems so far have had errors logged in %windir%\medctroc.log.  This log is appended to during every Media Center setup action, so you have to find the section that corresponds to the registration that happens at the end of Update Rollup 2 setup.  To find this, you can search for the string 5.1.2710.2732.  There should be multiple instances of this string in this log file.  You will need to find the entry that is followed a few lines later by a line stating Will run in registration mode.

Once you have found the Update Rollup 2 registration section, look for the group of commands labeled Removing existing native assemblies...  In each of the cases I have seen so far, there are entries in this section like the following:

Executing line "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ngen.exe /nologo /delete ehiwmp"
 Warning: Process Return Value is 0xc0000139 --> (null)
 Error: Failed to apply command to ehiwmp (return value: 0xc0000139).

Then you should see another entry in the log file during this same registration session that states:

Encountered errors during registration of Windows Media Center.  Please see {C:\WINDOWS\medctroc.Log} for details.

How can I workaround this issue?

If you have the above entries in your %windir%\medctroc.log file, you can do the following to repair your computer:

  1. Download and reinstall the .NET Framework 1.1 SP1
  2. Go to the Start menu, choose Run and type cmd.
  3. From the cmd prompt, run %windir%\ehome\medctrro.exe /o /p RunOnce to re-run Update Rollup 2 registration code.  This command will not display any UI, so you will have to keep track of the process in Task Manager to know for sure when it completes.
  4. After the process in step 3 completes, restart your computer to complete the Media Center registration process.

What is the root cause of this issue?

There are a couple of problems that cause this issue.  The first is a logic problem with the setup registration program (%windir%\ehome\medctrro.exe).  When it encounters an error like the NGEN error listed above, it continues until it is done processing managed assemblies but then it stops without performing the rest of the registration steps.  This means that the machine is left in the state where new assemblies from Update Rollup 2 are added to the GAC, but the ehSched and ehRecvr services and the ehRec and ehMsas executables are unregistered.  These services and COM servers are used for a lot of functionality inside of Media Center, particularly TV.  Therefore if they are left in an unregistered state, MCE fails in many places.

The second issue is that the command to run NGEN is failing with an unexpected error code 0xc0000139 in some cases.  This error code means "entry point not found" but I have not been able to reproduce this on one of my test machines so I don't understand exactly why this error is appearing.  I have asked a couple of folks who hit this problem to try running the NGEN commands directly to see if they give more descriptive error messages.  I will update this blog post when I know more about the root cause of NGEN failing in these scenarios.

<update date="10/20/2005"> We have found one root cause of this type of error, and I have posted a description and a simpler workaround for this error in this blog post </update>

<update date="10/30/2005"> It appears that the link to the simpler workaround isn't being found in the update text, so I've updated the workaround to contain the steps from my newer blog post to avoid confusion </update>

<update date="1/12/2010"> Added a note about rebooting at the end of the registration process. </update>


  • I have had the exact problem, I will try your idea tonight and let you know.

    I will also point people here on this weeks Media Center Show if they are having any problems
  • When I ran into this, running ngen from the command line gave:

    ngen.exe - Entry Point Not Found
    The procedure entry point GetRequestedRuntimeVersion could not be located in
    the dynamic link library mscoree.dll

    I reinstalled .net sp 1 and ngen started to work.
  • Aaron,

    Thanks !!! Just when I was getting desperate, this did the trick for me.

  • Any idea if maybe this is caused by doing updates over Remote Desktop? I have this same issue, and that's what i did... wondering if maybe there is a way to get to the root of the problem and that's the only thing I did.

    I also use DVI output and when I got home after the updates/reboot over RDP, it was using the wrong monitor all of a sudden.
  • Two machines have been crippled by the rollup 2. An HP z545 and an oem built box. Tried the fixes here but still no go. The first two Regasm lines return an error suggesting insufficient right to edit registry even though I have full Administrator rights on both machines. Any other ideas?

    Problem: After installing rollup 2 no tuner error and receiver errors occur. Even if I totally uninstall rollup 2 the machine is still crippled as a media player. (I can still use Sage TV, etc. so the tuner is OK except in MCE). Before this rollup 2 both systems were ok.
  • I am having the exact same problem and no one from tech support for my computer was able to help me. I will definitely follow your instructions to see if I can fix the problem.
  • Yes! That fixed the problem. You are the man Andrew!

    Anytime you have a problem with Microsoft Operations Manager (MOM) email me - I owe you one.

    -from a fellow 'softie.
  • Hi,

    Been working for hours trying to fix this and then thought I'd just type in the error messages into Google and this came up right away.

    Very many thanks for the fix - I just cut and pasted all your run commands into the command box and - hey presto - it all worked again. My hero!

    Many thanks - and shouldn't MS be recognising this as a BIG issue???

    I did a whole raft of upgrades the day I did the new MCE rollup and was convinced it was the new ATI graphics driver causing the problem, and spent HOURS uninstalling and re-installing it - to no avail of course.

  • Thanks for the fix! You are absolutely the best. I had this problem after installing the MS rollup update. You saved me from going through the entire troubleshooting procedure.


  • Dude, you rock !!! Many thanks for your efforts. As others before me, I followed your instructions to the letter, copy and paste to the command prompt. MCE is now working like a champ. AWESOME !
  • Thank you for your solution. I tried it and it solved the problem.
  • I have an HP Pavillion Media Center PC and had this problem. After running through the steps above it seems to be working fine. Thanks!
  • Yet another happy customer. Your fix worked great. THANK YOU - THANK YOU - THANK YOU!!!

    One idea about why this happens on some machines and not others - I upgraded on two different MCE machines and the problem occurred on one machine, but not on the other.

    1) MCE 2004 machine that I upgraded via the OEM provided MCE 2005 upgrade - this problem occurred.
    2) MCE 2005 machine - this problem did not occur
    Both machines had MCE rollup 1 installed via update
  • Exact problem. Exact fix. Many thanks. ~Jayman
  • Just thought I’d add my name to list of thanks for this fix, I was starting to pull my hair out. How MS expect MCE to go main stream when people have to jump through hoops just to get an update to work properly is beyond me. Hopefully MCE Vista will be better, thanks again. Mark
Page 1 of 6 (87 items) 12345»
Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post