How to repair the .NET Framework 1.0 that ships as part of the OS on Media Center and Tablet PC
A couple of months ago I posted some instructions about how to repair the OCM version of the .NET Framework 1.1 that ships as part of the OS on Windows Server 2003 (at this location). When I wrote that post, I knew that there would eventually be questions about how to perform a similar repair for the version of the .NET Framework 1.0 that ships as part of the OS on Windows XP Media Center Edition and Tablet PC Edition, but I skipped those instructions at the time because they are more complicated. Yesterday, I came to work and found a comment on one of my blog posts asking that very question, so now it is time to list these steps as well. I apologize in advance for the complicated nature of these steps - I promise that if we knew then what we know now we would have engineered our OCM setup to make this easier.
Here are the steps required to manually repair the .NET Framework 1.0 on Media Center and Tablet PC:
- Delete the registry value netfx under HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OC Manager\Subcomponents
- Rename the registry values ServicePackSourcePath and SourcePath located at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup to ServicePackSourcePath2 and SourcePath2
- Rename the file netfxocm.dll located at %windir%\system32\dllcache
- Download the file netfxocm.dll (located in the zip file here) and copy it to %windir%\system32\setup. A Windows File Protection error will likely appear shortly after doing this, and for now you can press cancel and ignore it.
- Create a file named netfx_repair.inf that contains the following text (or download it from here):
[Version]
Signature = "$Windows NT$"
DriverVer=10/01/2002,5.2.3790.0
[Components]
netfx=netfxocm.dll,UrtOcmProc,netfxocm.inf,,7 - Open a cmd prompt and run the following command: sysocmgr /i:<full path to netfx_repair.inf> . This will bring up the Windows optional component installer wizard. Press next and installation/repair of the .NET Framework 1.0 component will begin. You will be told that you need your original OS installation disc. Press OK on that dialog.
- After pressing OK, you will be prompted to browse to the location of your OS installation disc. In the browse dialog, you will need to browse to the folder \cmpnents\netfx\i386 on your OS installation disc or network share. Windows XP Tablet PC Edition and Windows XP Media Center Edition include a file named netfx.cab on their installation discs in the \cmpnents\netfx\ sub-folder, and that cab file contains the files needed for the .NET Framework 1.0.
- After optional component setup finishes, rename the registry values ServicePackSourcePath2 and SourcePath2 located at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup to ServicePackSourcePath and SourcePath
Note, you can verify that the .NET Framework 1.0 component was repaired by looking at the contents of the log file named %windir%\netfxocm.log. You should see entries towards the end indicating that several files were installed to the GAC, type libraries were re-registered, performance counters were re-registered, etc.
<update date="8/19/2007"> Added more specific details about where to browse for .NET Framework 1.0 source files </update>
<update date="6/24/2009"> Fixed broken download links. </update>
Comments
Anonymous
September 11, 2005
Note that winisp.com is now offline (at least for me) and is being redirected to redweb.org?
So can't download any of the tools or dll files.
So far unable to repair my xp mce installation but will repost after trying a few more options.
Cheers, and thanks for making this sort of information available.
-Matt RidingsAnonymous
September 12, 2005
Hi Matt - it looks like there was some kind of outage on the ISP that I'm using to host my tools downloads, but it appears to be up and working now. Can you please try the download again and see if it works for you? If it doesn't work, can you please contact me directly by using http://blogs.msdn.com/astebner/contact.aspx and I will email you a copy of the file directly instead?Anonymous
January 04, 2006
Thank you! With your help I was able to fix my broken Tablet! I'm not sure what caused it, if it was the .NET SDK or .NET 2.0 Framework I installed but something broke my tablet input panel. I tried to fix it by reinstalling XP SP2 but that made the situation worse and I wasn't able to install or uninstall SP2 afterwards.
I struggled with it for two days until I found this blog. Thank you so much for having such a useful site! :o)Anonymous
April 22, 2006
The comment has been removedAnonymous
April 30, 2006
Hi Daniel - I am not sure what to suggest in your scenario. When I try the steps listed in this blog post, it gives me a Browse dialog that I can use to browse to the folder that contains the .NET Framework files. Are you sure that this dialog that asks for the i386 folder does not let you change to a new path?Anonymous
June 01, 2006
A while back, I posted this possible workaround for crashes that can happen when trying to launch Xbox...Anonymous
August 27, 2006
PingBack from http://blogs.msdn.com/astebner/articles/454956.aspxAnonymous
October 16, 2006
Hi, I've tried this a couple times, but on step 6, I am not getting asked for a path to install files from. I've saved the file in the root directory of c: and am typing this in exactly: sysocmgr /i:c:netfx_repair.inf When it pulls up the wizard, though, it's a black checkbox that's selected, and after clicking next, the wizard disappears without asking for a path to install from. Any thoughts? Thanks!Anonymous
October 21, 2006
The comment has been removedAnonymous
October 25, 2006
Was there more to that reply?Anonymous
October 25, 2006
Hi Nicholas - I looked at this a little more, and there is a registry value that controls where Windows will looks when you run sysocmgr to try to find the source files. You may want to try to temporarily changes the value of the following registry entry and re-run step 6 and see if that helps in this scenario: [HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionSetup] SourcePathAnonymous
July 15, 2007
The comment has been removedAnonymous
July 18, 2007
Hi Mpowered - I haven't heard of a scenario like you describe yet. If the steps in this post do not work, I'd suggest trying to do a full repair/re-install of your OS instead of just a targeted repair of the .NET Framework 1.0 and see if that helps resolve this issue. The .NET Framework 1.0 is a part of the OS on Windows XP Media Center Edition, and because of that the cleanup tool will not allow you to remove it because it would affect OS functionality. So you will not be able to use the cleanup tool in this scenario.Anonymous
August 19, 2007
Hi, Aaron - I tried your process to repair .NET FRAMEWORK 1.0 on a MCE. I got exactly the same résults as Mpowered. My original problem stems from a recent MS update KB930494 which refuses to install. I can't get rid of it. Have you given any more thoughts to this problem ? Thank youAnonymous
August 19, 2007
Hi Drag-vid - I tried the instructions in this blog post on my home system that is running XP Media Center Edition 2005, and I found a couple of steps that were confusing so I've updated this blog post with updated steps that will hopefully be more specific. When I follow the steps as listed in the updated post, it works as expected. Can you please try using these updated steps and see if you have any better luck here? If that doesn't help, it may be useful to try to install/repair the .NET Framework 1.1 or 2.0 (whichever version you have that is highest on your system) - in many cases in the past, I've seen that be helpful in resolving installation issues for .NET Framework 1.0 hotfixes. Hopefully one of these helps.Anonymous
August 20, 2007
Hi Aaron _ Thaks for taking your time to reply. I tried your process again. It still doesn't work. The main issue is that as Mpowered said I had no opportunity to browse. I made sure the CD was online in the drive and that it contained the required .cab file. I've removed all .NET software from my system. So, I'll download 1.1 et re-install it. Do I need it? or should I just go to 2.0 instead ? Is there a flag somewhere that I could clear which says that 1.0 is installed eventhough it's not Thanks again for your helpAnonymous
August 21, 2007
Hi Drag-vid - I'm not sure why you wouldn't be getting a browse dialog like I did when I tried this scenario at home. Sometimes, that will happen if you don't rename SourcePath and ServicePathSourcePath in the registry prior to running sysocmgr. Overall though, the steps in this post are not officially tested/supported, so I can't guarantee that they'll work in all configurations. The most reliable way to re-install the .NET Framework 1.0 on Tablet or Media Center is to repair the OS or the latest OS service pack. You don't necessarily need to install the .NET Framework 1.1 or 2.0, but I was hoping that by doing that, you would fix whatever issue was causing the 1.0 hotfix you are trying to install to fail. I could also try to help you narrow down the cause of that in case it is helpful - to do that I'd need you to describe the exact error you see when you try to install the 1.0 hotfix, and also see if there is a log in the c:windows directory for that hotfix. The log should contain the KB number in the name somewhere.Anonymous
August 21, 2007
The comment has been removedAnonymous
August 22, 2007
Hi Drag-vid - This is the exact error that is causing the install of the hotfix to fail: C:WINDOWSMicrosoft.NETFrameworkv1.0.3705ToGac.exe C:WINDOWSMicrosoft.NETFrameworkv1.0.3705System.Web.dll What happens if you try to run that same command from a cmd prompt? Can you let me know what error appears when you do that? I'm guessing that the file ToGac.exe does not exist on your system, but I'm not positive.Anonymous
August 23, 2007
Hi Aaron, The file ToGac.exe is there. I entered the command. Nothing happened. The file System.Web.dll is not there. I googled it but could not find a place to download it. Also, I installed 2.0. It completed successfully. I followed with Windows Update. Update KB917283, KB922770 and KB930494 did not install ! KB928365 installed OK. I Reboot then I reran update. KB930494 showed up again but not the other two. Your tool to verify NET 2.0 showed warnings for quite a number of files which apparently were not at the right version. Thank youAnonymous
August 23, 2007
Hi Drag-vid - Since one of the .NET Framework 1.0 files (System.Web.dll) is missing, that would explain the error you're seeing, and it would also mean that this isn't a type of error that installing a newer version of the .NET Framework will help resolve. I'm not sure what to suggest if the repair steps listed above do not work for you. You might be able to manually extract the contents of netfx.cab from the cmpnentsnetfxnetfx.cab file in your original OS media and copy the missing ones to c:WindowsMicrosoft.NETFrameworkv1.0.3705, and then try to install the 1.0 hotfixes again and see if they will install correctly. If that doesn't help, I think you will need to repair your OS to restore the .NET Framework 1.0 files that come as part of the OS. I'm very sorry for the inconvenience that this issue has caused.Anonymous
August 23, 2007
Thanks Aaron. I'll try what you suggest. I'd rather not repair my OS if I can avoid it. At this point I'm only bothered by this update coming back every time I boot. My system works, though.Anonymous
August 24, 2007
The comment has been removedAnonymous
January 13, 2008
Hi Aaron, I'm getting the same problem with no opportunity to browse as advised in your original solution. Interestingly, I checked the install log for the Windows Update that is failing. I am getting return code 1 on the ToGac for the System.Web.dll. I have both files on my C: drive. So I'm not having the same problem as drag-vid. When I run that command from the command prompt. I get the following errors: The procedure entry point "GetRequestsedRuntimeInfo could not be located in the dynamic link library mscoree.dll" and "C:WINDOWSMicrosoft.NETFrameworkv2.0.50727mscorwks.dll could not be loaded." Any suggestions? Thanks, LuckybAnonymous
January 13, 2008
The comment has been removedAnonymous
January 14, 2008
Hi Aaron, Your other post about running the .NET Framework Cleanup tool did the trick. I ran that for the 2.0 version fo the framework and then reinstalled the framework. Updates are running fine now. Thank you very much for your posts!Anonymous
May 29, 2009
Question: I tried to install the .NET Framework 4 beta 1 and Visual Studio 2010 beta 1 on my WindowsAnonymous
October 09, 2014
how to recover my tablet its frameworkAnonymous
October 10, 2014
Hi yan - I need to know more details about your scenario in order to be able to suggest next steps for you. What exact version of Windows do you have on your PC, and what exact error message(s) are you seeing currently?