Jump to content

ehshell.exe error application has generated an exception


Recommended Posts

The cause of this on my machine was due to an error loading mscorwks.dll when re-installing MCE 2005, however, I understand that quite a few people have had this error for other reasons. Here’s how I fixed it.

Basically everything installed fine when I repaired my MCE2005 except I received an error, ‘Error loading f:\windows2\microsoft .net\framework v2.0.50727\mscorwks.dll’ then it told me to check the medctroc.log file.

Apparently this error may also appear when trying to install a .NET Framework hotfix if you are simply updating windows MCE. I guess my install CD has this slipstreamed so it's not something i encountered.

Firstly I tried to reinstall the .NET Framework 2.0 as I thought it sounded like the registry thought that media centre was still installed but the files might be reverted because of how the OS was repaired. You can find the .NET Framework 2.0 at http://msdn.microsoft.com/netframework/downloads/updates.

However, this did not work for me but it could be one of the solutions for you, so I would try it. I then installed the .NET 2.0 SDK and attached the debugger to ehshell.exe (media centre). I received the message:

An unhandled exception of type 'System.TypeLoadException' occurred in Unknown Module

Additional information: Method ShowCPRecordingStop in type MediaCenter.Common.TenFootUserXPAdapter from assembly ehshell, Version=6.0.3000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 does not have an implementation.

I tried to update my system via Windows Update with the KB900325 update (Rollup 2 for MCE2005), but it always failed. NOTE. This update contains other updates, including itself. These are; KB900325.exe, WindowsMedia10-KB895572-x86.exe, WindowsXP-KB888795-x86.exe, WindowsXP-KB891593-x86.exe, WindowsXP-KB895961-x86.exe, WindowsXP-KB899337-v2-x86.exe, WindowsXP-KB899510-x86.exe, WindowsXP-KB902841-x86.exe, wmfdist95.exe. I then downloaded the update (WindowsXPMediaCenter2005-KB900325-usa.exe) and tried to install it and found that it failed on installing a specific update, which was the kb900325 hotfix. (NOTE that when it fails you will need to reboot and it will do a system restore on your machine. Let it do this BEFORE you carry on with the following.)

To resolve this I extracted the file WindowsXPMediaCenter2005-KB900325-usa.exe to a folder using WinRAR (Click the link to install. Then right click on the file 'WindowsXPMediaCenter2005-KB900325-usa.exe' and do 'extract to' under the winrar menu). I then manually installed all of the hotfix’s individually. Except one which is WindowsXP-KB891593-x86.exe (which failed stating that it had failed to migrate dependant packages), even the above hotfix that failed during the automated install, (KB900325) installed ok. Anyway...media centre now run's, although it now crashes out when I try to close it, this should be the same case for you too. I don't know however, which hotfix actually enabled media centre to run as I didn't try to run it after every hotfix. You should now reboot your machine and visit Windows Update. This will then download two updates, KB910393 and KB913446. Then reboot your machine again. Now back to the one hotfix that failed earlier, to sort this you will need to go to; Start/run/appwiz.cpl . Make sure the updates box is checked. Scroll down to Windows XP – Software updates. Remove the file KB904706 (it will prompt you that it is not advised as certain files/programs depend on it) and then go back to the folder where you extracted the rollup to and install KB891593, it should now install fine. You will then need to download and install the update KB904706 again. Then go to Windows Update and install the latest update KB912067. Reboot your machine and everything should work fine!

I personally thought that I’d never manage to fix it but I have.

I can now use my media centre remote again woohoo! Plus I don't have to use some crappy imitation like Nero home...pfft!

Edited by Jay_Stealth
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...