.NET Framework cleanup tool now supports .NET Framework 4.5 and Windows 8


I have posted an updated version of the .NET Framework cleanup tool that supports cleaning up the .NET Framework 4.5. It has also been updated to correctly recognize when it is running on Windows 8. There is more information about how to download and use the .NET Framework cleanup tool in the user’s guide at http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx.

As always, if you run into any issues or have any feedback about the .NET Framework cleanup tool, please let me know by posting a comment on one of my blog posts or using the contact form.

Comments (55)

  1. leha_volkov@mail.ru says:

    I need to install the RTM version of .Net Framework on Windows 8 Release Preview, but the setup says that "Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable.".

    Can I work around this error?

  2. astebner says:

    Hi Fduch – Windows 8 includes the .NET Framework 4.5 as a part of the OS, and it cannot be removed or installed separately from Windows.  In pre-release versions of Windows 8, there is a pre-release version of the .NET Framework 4.5 as well.  If you need to install the RTM version of the .NET Framework 4.5, you will need to install the RTM version of Windows 8.

  3. Steve Gate says:

    When i setup Visual Studio 2012, it notification so!

    Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable

  4. astebner says:

    Hi Steve Gate – That is correct – if you install VS 2012 on Windows 8, it will skip the .NET Framework 4.5 because the .NET Framework 4.5 is included as a part of the OS on Windows 8.  Are you able to successfully install VS 2012, or are you getting setup errors?

  5. bkd says:

    Hi Aaron, I'm also facing same problem while installing VS2012. I'm getting an notification like …

    Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable.

    I'm unable to install VS2012. Could you please help me

  6. astebner says:

    Hi Bkd – The .NET Framework 4.5 is a part of Windows 8, so Visual Studio 2012 setup will skip trying to install it.  That shouldn't cause VS 2012 setup to fail though.  What exact error are you seeing when you try to install VS 2012?  Also, can you please use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  7. Sam says:

    am trying to install VS2012 but i got this error "The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709." then i tried installing .NETFramework 4.5 but i couldnt install cos is already a part of window 8. so what is the way out please?

  8. Ganbat.D says:

    Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable.

  9. astebner says:

    Hi Sam – Windows 8 includes the .NET Framework 4.5 as a part of the OS, and it cannot be removed or installed separately from Windows.

    Version 4.5.50709 is the RTM version of the .NET Framework 4.5, and if Visual Studio 2012 setup doesn't detect that it is installed, then it most likely means you have a pre-release version of Windows 8 (which includes a pre-release version of the .NET Framework 4.5).  You can only install Visual Studio 2012 RTM on the RTM version of Windows 8.

  10. kean_matthew_a@cat.com says:

    Can 1.1 be uninstalled from Server 2003 even though it is an OS component?  1.1 goes out of extended support this year and won't receive security patches after that point, but Server 2003 is in extended support for 2 more years.  I am wondering what the best course of action is for my Server 2003 boxes (other than migration to Server 2008/12).

  11. astebner says:

    Hi mkean21 – No, the .NET Framework 1.1 cannot be uninstalled from Windows Server 2003.  If the OS is in extended support, I think that means that Microsoft will continue to provide support for all OS components, including the .NET Framework 1.1, even if there is no longer any extended support for the redistributable version of the .NET Framework 1.1.  I don't know for sure though, so I'm trying to track down any additional information about this scenario from some people I know on the .NET Framework team.  I'll post back here if I am able to learn anything more.

  12. astebner says:

    Hi Mkean21 – The people I talked to suggested that you talk to your account manager to get an official statement about the extended support lifecycle for Windows Server 2003 and the version of the .NET Framework that ships in it.

  13. MOhit says:

    i have installed VB 2008 but .net framework is not downloading

  14. astebner says:

    Hi MOhit – Can you please use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  15. Felipe Goes says:

    Hello,

    After using the tool clenaup, could not reinstall any version of dotnet, displays the following message:

    Event Type: Information

    Event Source: MsiInstaller

    Event Category: None

    Event ID: 1040

    Date: 2/18/2013

    Time: 4:44:05 PM

    Description:

    The description for Event ID ( 1040 ) in Source ( MsiInstaller ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: c:90bd99a74c2ce9b42cwcudotnetframeworkdotnetfx20netfx20a_x64.msi, 7868, (NULL), (NULL), (NULL), , .

    Anyone experienced this?

  16. astebner says:

    Hi Felipe Goes – Can you please use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your setup log files, upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  17. Felipe Goes says:

    Aaron, thx for your replay… I will provide 🙂

  18. vahid says:

    i installed vs 2012 and when i want to run it, i got this error:

       could not load file or assembly presentationframework version=4.0.0.0,

       Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies.

       The system cannot find the file specified.

    also when i installed vs 2010 i got this error.

    i have windows 8 32 bit.

    please help me.

    thank you very much

  19. astebner says:

    Hi vahid – That assembly should have been installed as a part of Windows 8 because Windows 8 includes the .NET Framework 4.5 as a part of the OS.  You might want to try to repair the .NET Framework by doing the following:

    1.  Try to run the System Update Readiness Tool from support.microsoft.com/…/947821.

    2.  Try to repair the files that are a part of your OS by using the steps listed at blogs.msdn.com/…/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx.

    If none of the above help, then I'd suggest posting a question on the Visual Studio setup forum at social.msdn.microsoft.com/…/threads to see if someone there has any additional suggestions for you to try.

  20. vahid says:

    Thank you Aaron Stebner

  21. dandlion says:

    Thank you so much Sir Aaron Stebner!!

  22. Ronnoc says:

    Hi Aaron, i am currently using a school laptop as i am in high school. And by some very accidental occurence i seemed to have deleted the .NET framework from my laptop. When i realised what i had done i had gone to the bin and restored all the documents. However, it didn't work. I am unable to install anything or play games, etc. I have tried repairing the .NET framework with one of your suggestions and even removing it. Nothing has worked for me.. What do you suggest?

    Thanks, Ronnoc.

  23. Ronnoc says:

    I am also using windows 7 enterprise as it is part of the school system.

  24. astebner says:

    Hi Ronnoc – What version of the .NET Framework do you need to restore on your Windows 7 computer?  If it is the .NET Framework 4.5, 4, 1.1 or 1.0, then I'd suggest using the instructions and the download links at blogs.msdn.com/…/8108332.aspx to remove and re-install the .NET Framework.

    If it is the .NET Framework 2.0, 3.0 or 3.5, those are installed as a part of the OS on Windows 7.  You can use steps like the ones at blogs.msdn.com/…/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx to repair versions of the .NET Framework that are installed as a part of the OS.

  25. Danial says:

    Seems to be a bug in the latest version

    Dot Net 1.1 is not detected as installed on 64bit operating systems (XP64 – Win8 64) when it ever so clearly is.

  26. astebner says:

    Hi Danial – This seems to be working for me on the 64-bit machines that I've tried so far.  Can you please provide a log file from the tool when you ran it in this scenario so I can take a closer look?

  27. Frank says:

    Hi Aaron!

    Does the cleanup tool support .NET Framework 4.5.1 ?

    Regards

    Frank

  28. astebner says:

    Hi Frank – The tool does not have a separate entry for the .NET Framework 4.5.1, but since it is a service pack-level update to the .NET Framework 4.5, you can choose the .NET Framework 4.5 entry and it will cleanup either the .NET Framework 4.5 or the .NET Framework 4.5.1 depending on what you have installed.

  29. astebner says:

    Hi Frank – I looked at the cleanup tool source code a bit closer and realized I will have to make a small update to allow it to fully remove the .NET Framework 4.5.1.  I'll be publishing an updated version of the cleanup tool later today with this update.

  30. mukesh says:

    hi i am not able to install kaspersky internet security on my lappy. "windows 8"

    it says "an error ocured while intereactin wit microsoft.net framework.4.5,you are advised to reinstall the microsoft.net framework 4.5 what to do i am not able to reinstall the frmework

  31. astebner says:

    Hi mukesh – The .NET Framework 4.5 is installed as a part of the OS on Windows 8.  I'm not sure what Kaspersky setup does that would trigger that type of error, so you might need to contact their technical support team to see if they can give you more information about what exactly their setup is detecting that is wrong.

    In the meantime, you can try the following options to see if they help you repair the .NET Framework 4.5 on Windows 8:

    1.  Try to run the System Update Readiness Tool from support.microsoft.com/…/947821.

    2.  Try to repair the files that are a part of your OS by using the steps listed at blogs.msdn.com/…/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx.

    If none of the above help, you might need to repair/re-install Windows to fix this type of error.  It might also help to post a question on one of the Windows forums to see if someone there has any additional suggestions for you to try before you resort to re-installing Windows.

  32. aaqil says:

    when im try to install the office 2010 error 1935 pop up, unable to find  solution on this,

    kindly help as im using windows 8

  33. astebner says:

    Hi aaqil – There are several possible causes of 1935 errors, so I'll need some more information from you in order to be able to diagnose the cause.  Can you copy and paste the full text of the error message for me to look at?  Also, can you try to find the Office setup log files, then zip them, upload them to a file server such as http://skydrive.live.com, and then reply back here with a link I can use to download the log files and take a closer look?

    You can find information about the names and locations of Office 2010 setup log files in the knowledge base article at support.microsoft.com/…/826511.

  34. Janica says:

    Hi! I can't install Kaspersky Anti-virus 2014 on my laptop that has a Windows 8 as its OS, it notifies that something is wrong with my Microsoft .NET Framework 4.5 and I need to re-install it but I can't uninstall Microsoft .NET Framework 4.5 because it is part of the OS. So, what will I do?

  35. astebner says:

    Hi Janica – Does the installer give any more specific error information in this scenario?

    You're correct that the .NET Framework 4.5 is installed as a part of the OS on Windows 8 and it can't be re-installed separately like it can on Windows 7.  Here are some steps that I typically recommend to try to repair versions of the .NET Framework that are installed as a part of the OS:

    1.  Install the latest Windows service pack if you haven't yet. Windows 8 doesn't have any service packs, but you might have luck installing Windows 8.1.

    2.  Try to run the System Update Readiness Tool from support.microsoft.com/…/947821.

    3.  Try to repair the files that are a part of your OS by using the steps listed at blogs.msdn.com/…/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx.

    I'd also suggest contacting Kaspersky to see if they have any known issues or patches related to issues installing on Windows 8.

  36. Calvin says:

    Hi! I can't install Kaspersky Internet Security 2014 on my laptop that has Windows 7 Home Premium as its OS; it notifies that something is wrong with my Microsoft .NET Framework 4.5 and I need to re-install it but I've re-installed it atleast 5 times and rebooted my laptop too, but to no avail. So, what should I do?

  37. astebner says:

    Hi Calvin – I'd suggest using the steps and tools described at blogs.msdn.com/…/8108332.aspx to fully remove the .NET Framework from your computer and then try to install the .NET Framework 4.5.1 from http://www.microsoft.com/…/details.aspx.  If the .NET Framework 4.5.1 installs correctly but you still can't install Kaspersky Internet Security, then I'd suggest contacting their technical support team to see if they have any troubleshooting suggestions or patches for you to try.

  38. Calvin says:

    Well, when I contacted their tech support team, they blamed it on Microsoft and asked me to contact them.

    When I contacted Microsoft, they told me to contact some IT Technician.

    When I contacted the IT Technician, he said he doesn't know much about it and suggested the Internet.

    When I searched the Internet, I found this blog.

    And, the wheel keeps rolling.

    Anyway, I will contact Microsoft once more and then another IT Technician.

    Thanks for your help though, appreciate it. 🙂

  39. astebner says:

    Hi Calvin – Were you able to successfully install the .NET Framework 4.5.1 on this computer?  If so, did the Kaspersky technical support team give you any specific reasons why they thought it was a Microsoft / .NET Framework problem as opposed to a problem in their app?  For example, are there any specific errors in their setup log files or something like that?

    Also, when you contacted Microsoft, why did they tell you to contact an IT technician?  What do they expect the IT technician to be able to do to resolve this issue?  If you have a case number, please send it to me with the email link on my blog (blogs.msdn.com/…/contact.aspx) and I'll try to follow up with the support team to see if they have any more data and see if there is anything I can help with there.

  40. Calvin says:

    blogs.msdn.com/…/8108332.aspx

    Thanks a lot for this link! After roughly 5 hours of struggling, the Repair tool helped me.

    HALLELUJAH!

    NOTE: I've checked Kaspersky Internet Security 2014 on my PC (Windows 7 Home Basic) and it works with the Repair tool which you can get at the above mentioned link. 😀 😀 😀

  41. Theo says:

    I used the tool it deleted kaspersky internet security

  42. astebner says:

    Hi Theo – The .NET Framework cleanup tool only knows how to remove files, registry keys and MSI products that are a part of the .NET Framework.  It does not uninstall any other products.

    It is possible that Kaspersky Internet Security requires the .NET Framework and it doesn't work correctly after you use the tool to remove the .NET Framework.  If that is the case, you'll need to re-install the version of the .NET Framework that it needs in order to allow it to work again.

  43. jelmer says:

    I need the MSVCR71.dll file and people say that i can install frame network 1.1 that is than fixed. but now it says itsnot compatible. is there a simple way to get the MSVCR71.dll for windows 8.1 whit out spending money ???

  44. astebner says:

    Hi Jelmer – The .NET Framework 1.1 will show a compatibility warning, but it should still allow you to install on Windows 8.1.  Alternatively, you could use steps 1 and 2 from the blog post at blogs.msdn.com/…/385971.aspx to extract the contents of the .NET Framework 1.1 installer without actually installing it.

  45. Saikat Das says:

    Hi Aaron, .NET 2005 is worked on Window 2008 /windows 2012?

    and What is the latest version of .NET 2005?

    Thank You For Your Reply ! !

  46. astebner says:

    Hi Saikat Das – I'm not sure exactly what you're asking here.  When you say ".NET 2005" – do you mean Visual Studio 2005, or do you mean a version of the .NET Framework?

    If you're looking for Visual Studio information, the data at en.wikipedia.org/…/Microsoft_Visual_Studio will hopefully help answer your question.

    If you're looking for .NET Framework information, the data at msdn.microsoft.com/…/bb822049(v=vs.110).aspx will hopefully help answer your question.

  47. Saikat Das says:

    Hi Aaron Stebner,

      I am asking about Visual Studio 2005. Is Visual Studio 2005 is working on the Windows 2008/2012?

    Thank You ! !

  48. astebner says:

    Hi Saikat Das – Yes, Visual Studio 2005 will work on those versions of Windows.  Please let me know if you end up trying it and run into installation issues.

  49. Vesp says:

    Hi!

    I'm running Win8.1 with .NET Framework 4.5 Multi-Targeting Pack, .NET Framework 4.5 SDK, ,NET Framework 4.5.1 Multi-Targeting Pack, .NET Framework 4.5.1 Multi-Targeting Pack (ENU), .NET Framework 4.5.1 SDK. I'm trying to install .NET 1.1 but to NO AVAIL, even tried dozens of time with "Creating an administrative install point for the .NET Framework, a service pack and a hotfix" with no AVAIL.

    Every time I get windows installer error: This installation package could not be opened. Verify that the package exists and that you can access it or contact the application vendor to verify that this is a valid Windows Installer package.

    Any hints? I truly need to install .NET 1.1 so I can run a program that can only use 1.1, otherwise the software does not save information when the program is closed.

    Thanks in advance!

  50. astebner says:

    Hi Vesp – I'd suggest trying the tools and steps listed at blogs.msdn.com/…/8108332.aspx to see if they help in this scenario.

    If those steps don't help, please use the steps at blogs.msdn.com/…/help-me-help-you-if-you-have-setup-bugs.aspx to collect a verbose log file from the .NET Framework 1.1 installer, zip and upload the log file to a file server (such as http://onedrive.live.com), reply back here and post a link that I can use to download the log file and take a closer look.

  51. Emmanuel says:

    hello,

    i recently reset my windows 8 system, and i get an unhandled .net framework error when i try to open sql server management studio, when i try to install VS 2012 i get "an unhandled win32 exception error.

    please how do i resolve these?

    thank you

  52. Hi Emmanuel – I'd suggest trying to install the latest version of the .NET Framework 4 family to see if that helps resolve these errors.  The latest version is the .NET Framework 4.6, and you can download it from http://www.microsoft.com/…/details.aspx.

  53. celiojedi says:

    I need to install the borland 2006 on my computer, but i need to install the framework 1.1 and i am using the w8 soo u guys can see the picture right :

  54. Hi celiojedi – The official guidance from msdn.microsoft.com/…/hh925570(v=vs.110).aspx is that the .NET Framework 1.1 cannot be installed on Windows 8 or later, and you will need to work with the manufacturer of the application to see if they have an updated version that will work with the .NET Framework 3.5 instead.

  55. Can’t find how to uninstall 4.6.1 in a Windows Server 2012