MceRepair 0.1 (alpha)

Published 20 October 05 12:51 AM | Peter Rosser 

Having gotten a little fed up with manually re-registering MCE files when MedCtrRO.exe fails, I have created a new command-line utility to automate the task.

MceRepair.exe will:

  • Repair the ACLs to get COM+ Services working again (see KB909444)
  • Repair the registration for .NET Framework v1.1 libraries (should fix the "Entry Point Not Found in mscoree.dll" error during registration).
  • Reinstalls all MCE Windows Services
  • Re-registers COM components of MCE
  • Reinstalls managed assemblies into the GAC
  • Recreates native images for managed assemblies (ngen)

Of course, I can't warranty any of this stuff, but if you find it useful, feel free to use it.  If you run this and still cannot get things working on your machine, please let me know!  Please include your %windir%\MedCtrOC.log file, %windir%\ehome\ehshell.crash (if it exists), and if you're experiencing EPG problems, a zipped/RARed copy of your %ALLUSERSPROFILE%\Application Data\Microsoft\eHome\EPG folder.

MceRepair 0.1 (alpha) is posted at http://www.pegasi.com/MceRepair_0.1.zip [obsolete, use 0.2 below]

EDIT: A newer version, 0.2, is now available at http://www.pegasi.com/MceRepair_0.2.zip

Filed under: ,

Comments

# Rick said on October 21, 2005 7:01 PM:
Fantastic program mate, got stuck with no TV after rollup 2 and couldn't find a solution. MS were useless and your prog fixed it first time. Cheers
# Mark said on October 21, 2005 7:40 PM:
Tried to run your repaire program but it crashed, saying ArgumentNullException. Does this program require some sort of parameter?

Also, since installing rollup update 2, I can't view recorded TV at all, getting a "Component Registration Failure". Should/Will your app fix that (please pretty please!!!)?

Thanks
Mark
# astebner said on October 21, 2005 8:44 PM:
Hey Mark - you can try the workaround listed at http://blogs.msdn.com/astebner/archive/2005/10/20/483190.aspx to attempt to fix the Component Registration Failure error you are seeing if the MceRepair tool is not working for you.

Hope this helps....
# Peter Rosser said on October 21, 2005 9:03 PM:
<P>Mark - I will post a debug version when I get home tonight. If you run that I can get some debugging info from you that I can use to fix the problem. The program is not designed to need any parameters, so it's probably a bug. I suspect that you are missing a file the program expects to find.</P>
<P>Oh, and yes, it should fix that problem you've got.</P>
# Canuck in Distress said on October 22, 2005 1:11 AM:
This program saved my bacon!!! It worked great . . . . my system is back up . . . Great fix Thank You1
# ogd said on October 22, 2005 4:48 PM:
I was about to have a cow, when I found this entry. Thanks so much. works great. You could probably push this out to more folks/make the patch painless if you could suppress those ngen critical dialogs.
# Chris said on October 22, 2005 6:09 PM:
I get a crash when running this program;

"Application has generated an exception that could not be handled"

Process ID=0xfc4 (4036), Thread ID=0xfc8 (4040)

The issue I have with Rollup 2 is as described on Aaron's blog (error 3, no TV functions etc.), I've tried the two suggested fixes on Aaron's blog, but these don't solve the problem either. The first suggested fix (the series of commands) wouldn't work due to registry permission issues, I resolved each of these and got the commands to execute fine, but the services for Receiver and Scheduler just wouldn't register or start. The second suggested fix to re-run the Rollup 2 registration process also didn't make any difference - the two services are still missing from the Services List. Rolling back to a system restore point puts me back in a working state - hopefully one day I'll be able to apply Rollup 2!
# Chris said on October 22, 2005 6:33 PM:
OK - found out why it crashes - don't try to run it from a UNC path where it doesn't have write access!

Running it locally doesn't fix my problem though, the log file states that many dll's could not be registered, and then finally at the end it says;

service: ehsched Could not be installed (this may be okay). Code=-2147221164
service: ehrecvr Could not be installed (this may be okay). Code=-2147221164
service: rmsvc.exe is not present on your machine.
service: mcrdsvc Could not be installed (this may be okay). Code=-2147221164
regserver: ehmsas Could not be installed (this may be okay). Code=-2147221164
regserver: ehrec installed successfully

The two services (Receiver and Scheduler) are missing from the Services List, resulting in a non working My TV :(
# Peter Rosser said on October 22, 2005 11:44 PM:
Chris, can you please send the logs and an MCDiag capture to p_rosser@hotmail.com? Also, did you try v0.2?
# Matt Budd said on October 24, 2005 11:33 PM:
The MceRepair 0.2 worked like a dream. Thanks mate. Lots of mscoree.dll entry point errors though...not sure if that's important
# Peter Rosser said on October 25, 2005 12:07 AM:
If you're getting a lot of messages about "Entry point not found in mscoree.dll" (I forget the exact syntax), that means your .NET Framework 1.1 is not installed properly. You should reinstall it as soon as possible.

You can download it from here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en
# Donald Burnett said on October 25, 2005 6:54 AM:
Crashes when it first runs, no log generated..
# Dan said on October 25, 2005 12:18 PM:
0.2 worked like a champ for me last night. Actually some things that I couldn't get working in the past (like MTV Overdrive) automagically started working... but I'm assuming that's a fluke.
# Peter Rosser said on October 26, 2005 2:11 AM:
If you get a crash, ensure that you are not running this from a network drive (it requires local privileges), and that your event logs are not full.

If you still get an unhandled exception / crash, provide as much detail as possible so I can help.
# Mike W said on October 26, 2005 11:44 PM:
Thanks for the fix. I tried 0.2 first and it would not work but after trying 0.1 it looks like it is all working again.

Thanks for making this available to us.
# Peter Dignam, UK said on October 27, 2005 12:27 PM:
HI,

I installled Rollup 2 and got the classic error. Used Aaron Stebner's list of comand line fixes to sort it and that worked. then MS pdate installed the Update to Rollup 2 and the system was trashed again. Ran Aaron's fixes and it was fixed again. The noticed that many MCE Plug-ins weren't working either (e.g. InterDVD, Tweak MCE, and the new Hauppauge DVB Radio) so went back to MS site. Saw the small print about the MS NET hotfix needing to be unistalled so undid everything and took out roth rollups and all of .NET. Reinstalled the lot, still got the error and now even Aaron's fix didn't work. Ran the 02 version of the utility and got MOST things working except for Live TV. So, deleted the folder that holds the EHOME/EPG files and then rescanned the whole lot and eventually THAT seems to work again, although the third-party plug-ins still fall over.
# Darrel said on October 27, 2005 1:05 PM:
The folks at AverMedia sent this file my way in an attempt to fix a stuttering issue with their AverTVHD MCE A180 tuner after installing rollup 2. It didn't fix the stuttering issue, but it got rid of many of the errors that were showing up in the Event Viewer logs. I still get an error about the ATI DTV Wonder analog tuner failure. I am not sure, but I believe this has nothing to do with anything rollup related though.
# Chris Johnson said on October 28, 2005 9:38 PM:
Dude,

Nice work - after installing rollup2 and it breaking my Linksys MCE's connection I ran your tool V.02 and it fixed my issues like magic. Where were you 17 hours ago.

Nice job -

BTW: What up with the flaky MCE code in the first place? Who gave the green light to release this @ MS, as a partner I expected more.

Anyway, Thx
# Eric said on November 1, 2005 12:29 AM:
AverMedia also sent this file to me in an attempt to fix a stutter/tv corruption issue with the UltraTV 1500 MCE (though my AverMedia M150 exhibits no issues). I haven't yet run the tool, but from the sounds of it, it is unlikely to fix this issue.
# iTweaks.com » Blog Archive » Media Center Failure said on March 21, 2006 12:59 PM:
PingBack from http://www.itweaks.com/wordpress/?p=9
# otherslikeyou.com » Media Center Failure said on December 15, 2007 8:32 PM:

PingBack from http://www.burroak.on.ca/wordpress/?p=31

# Movies » 16.7ms in the life : MceRepair 0.1 (alpha) said on January 1, 2008 10:04 AM:

PingBack from http://movies.247blogging.info/?p=2610

# MCE rollup 2 | keyongtech said on January 21, 2009 9:29 PM:

PingBack from http://www.keyongtech.com/2804499-mce-rollup-2-a

# 16 7ms in the life MceRepair 0 1 alpha | Outdoor Ceiling Fans said on May 31, 2009 2:15 PM:

PingBack from http://outdoorceilingfansite.info/story.php?id=22059

# 16 7ms in the life MceRepair 0 1 alpha | debt consolidator said on June 19, 2009 10:56 AM:

PingBack from http://mydebtconsolidator.info/story.php?id=16168

New Comments to this post are disabled

About Peter Rosser

I have been employed at Microsoft since 2000 and am currently serving as a Development Lead for the Media Center Core team.
Page view tracker