Windows – Can’t uninstall/reinstall .NET Framework 3.5 with DISM

.net frameworkuninstallwindows 7

My net framework 3.5 is broken. Verification tool (http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx) says it's OK, but its not.

Net framework 3.5 can't be just uninstalled/installed on Windows 7. But you can do this by add/remove windows features. For me this doesn't work, I receive thus (not very helpful) error message …

"An error occurred. not all of the updates were successfully uninstalled" 

I found DISM tool which does exactly same, but have log. And now:

DISM /online /disable-feature /FeatureName:NetFx3

1603 error. And log:

http://pastebin.com/4jBkEiT6

Any ideas how to do it?

Best Answer

I've made IT!

After couple of hours I accidentally found solution to my problem.

Framework 3.5 somehow uses 2.0, and for 2.0 is known problem with "vanishing" config files:

c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\
c:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\

There have been files *.config.default but no *.config files. So... I used *config.default files to create .config files and everything worked.

Related Question