Removal tool to fix .NET Framework install failures


I wrote an application late last year that is designed to clean up computers that have problems getting the .NET Framework 1.0 or 1.1 to install correctly.  I have been working on refining the tool for the past couple of months, working out some bugs, adding additional cleanup features, etc.  The .NET Framework setup Product Support team has been using this cleanup tool for the past few months to help resolve many cases, and the internal Microsoft helpdesk has also started using it to solve internal cases where employees cannot get .NET Framework service packs or hotfixes to install correctly.  I have also been sending this tool out to individuals who email me via my blog and ask for help resolving setup problems – most commonly this is because of issues installing .NET Framework service packs or hotfixes such as MS05-004.


Since I have been seeing really good success rates for using this cleanup tool and it has proven to speed up the process of resolving issues so customers can get the .NET Framework installed correctly and start using managed code on their computers, I decided to try to get a KB article written up with a copy of the tool that customers could download on their own without needing to contact me directly or call our PSS team.  The KB publishing process can sometimes take a while with technical reviews and things like that, so in the meantime I am going to post a link to the tool here on my blog.


You can download the tool by visiting the .NET Framework Cleanup Tool User’s Guide and using one of the download links listed there.


There are a couple of very important caveats that you should read before using this tool to cleanup .NET Framework bits on your machine:



  1. You should try to perform a standard uninstall first.  This tool is not designed as a replacement for uninstall, but rather as a last resort for cases where uninstall or repair did not succeed for unusual reasons.
  2. This cleanup tool will delete shared files and registry keys used by other versions of the .NET Framework.  So if you use it, be prepared to repair or reinstall any other versions of the .NET Framework that are on your computer to get them to work correctly afterwards

The tool itself has been fairly well tested, but I’m sure it is still not perfect.  I’m still in the process of fixing bugs as I find them and adding features to make it more effective at cleaning up known issues and to make it more intelligent about identifying root causes so we can fix the underlying bugs in .NET Framework setup for future releases.  As I update it, I will post updates to my blogs and update the copy of the tool located at the link above.


I hope this tool will be helpful in resolving problems installing the .NET Framework.  Please let me know if you run into any issues while using the cleanup tool or if you are still unable to install the .NET Framework (or any service packs or hotfixes) after running it.


<update date=”3/3/2009″> Added a link to the .NET Framework Cleanup Tool User’s Guide, which contains the most up-to-date download location for this tool. <update>


 

Comments (282)

  1. MikeFarinha says:

    Are there any removal tools for help with the removeal of .net 2.0 beta components? I’ve seem to come across a problem with removing SQL ’05 Express Beta and now i can’t get it reinstalled.

  2. You should consider using an extension for the EXE that at least defaults (both on the server and in clients) to a binary MIME type, so that if a user simply clicks on it they will be prompted to download it. You could use a real extension like .zip (and zipping the EXE would reduce size) or (if WinISP supports it, and I honestly don’t know it if will) .bin (which typically defaults to "application/octet-stream" for unknown and/or unmapped extensions).

  3. Mike – we are actually in the process of getting a version of this tool ready for the Whidbey .NET Framework also. There are a couple of fixes I need to make to fully enable this for all of the beta and community tech preview versions of the .NET Framework 2.0 that are out in the wild. Stay tuned, I’ll post an update to my blog when I have something ready to try out.

    Heath – thanks for the posting suggestions. I could’ve sworn I had tried to upload a ZIP file to the WinISP site and it failed in the past. But I just tried again and it worked. So I’m going to update the text of this blog item to reflect the new link.

  4. In response to the blog article I posted last week where I provided a link to a .NET Framework manual…

  5. Hey all, I’m sorry for the delay posting this.&amp;nbsp; I’ve got a version of the cleanup tool that I wrote…

  6. Ok. After ACTUALLY sleeping for a few hours, I’ve so much information and news to catch up. First up….

  7. Dave says:

    Thanks so much for your hard work and sharing your cleanup tool. You have just released me from a world of pain.

  8. Anonymous says:

    This tool is a lifesaver!! Thank you! I was getting an error that it could not open %temp%e1877.msi

  9. Craig in Texas says:

    Thanks, man! I was totally screwed without this tool.

  10. Dave says:

    Thanks for having a go. I ran this but still can’t install .net 1.1 via dotnetfx.exe on xp pro. I have tried all other MS and your suggestions but to no avail. Looking at the MSI .log it fails at Registering System.EnterpriseServices.dll:

    MSI (s) (30:A0) [13:24:36:046]: Invoking remote custom action. DLL: C:WINDOWSInstallerMSI32.tmp, Entrypoint: _QuietExec@4

    CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8: Executing: ERROR: Process returned non-0 value! CMDLINE: "C:WINDOWSMicrosoft.NETFrameworkv1.1.4322RegSvcs.exe" /bootstrapi

    CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8: Executing: Failed

    Action ended 13:24:40: InstallFinalize. Return value 3.

    Any ideas?Cheers

    Dave.

  11. Hi Dave, we have gotten a lot of reports of .NET Framework installation errors where the failure occurs when trying to register System.EnterpriseServices.dll. Unfortunately we have not found a consistent root cause for this. In a lot of cases running my cleanup tool will help, but in many others it will not.

    The tricky part here is that registering this DLL is the first time that the underlying CLR is used to run managed code, and so if any part of the CLR is not working then this action will fail. But there are many possible causes for the CLR to not be working when it is being installed.

    I am working on a blog post describing how to gather debugging information from this action during setup to aid us in figuring out the root cause. I will post a link to it once I get my steps tested and posted on my blog….sorry for the delay.

  12. Dmitri says:

    I am having problems installing .net Framework 2.0 on an XP pro machine, this error keeps comming up:

    Error 25015.Failed to install assembly

    ‘C:WindowsMicrosoft.NETFrameworkv2.0.50215Microsoft.VisualBasic.Vsa.dll’ because of system error: Access is denied.

    Any ideas on what can be causing this, the installer works fine on other machines but this one seems to fail (ofcourse its the machine i need it on). Any help is greately appreciated!

  13. Hi Dmitry,

    This error sounds like it could be a permission issue for the global assembly cache. Can you please try the following:

    1. Open the %systemdrive% folder (normally this is c:) in Windows Explorer

    2. Right-click on the Windows folder and choose Sharing and Security

    3. Choose the Security tab

    4. Click the Advanced button

    5. Make sure that Users are listed as having Read & Execute permissions, Administrators have Full Control and SYSTEM has Funn Control

    6. Check the box that says "Replace permission entries on all child objects with entries shown here that apply to child objects"

    7. Click the OK button

    8. Try to install .NET Framework 2.0 again

    If that does not work, can you please try the following:

    1. Download the Filemon utility from http://www.sysinternals.com/Utilities/Filemon.html and install it

    2. Launch Filemon and press CTRL + L to launch the filter dialog

    3. Check the box to log writes and choose to include msiexec.exe and fusion.dll

    4. While Filemon is running run .NET Framework 2.0 setup and wait for it to fail

    5. Copy and paste the error messages with access denied as the error type and send them to me via email so we can see if we can figure out the root cause

  14. Andy says:

    I’m trying to install .Net Framework 2.0 beta 2 onto xp pro sp2 using the redist dotnetfx.exe, version 2.0.50215.45. I get the error message "Error 25015.Failed to install assembly

    ‘C:WindowsMicrosoft.NETFrameworkv2.0.50215System.EnterpriseServices.dll’ because of system error: parameters incorrect". Can you help?

  15. Hi Andy – I’ve been asking around and nobody here has seen the error you’re running into, so I think we may need to use a variation of the debugging steps I just posted at http://blogs.msdn.com/astebner/archive/2005/06/17/430320.aspx to gather more information about your machine. Here are the exact steps that you can use to get crash info:

    1. Download and install the .NET Framework 2.0 redist and SDK on a separate machine. You can download them from http://lab.msdn.microsoft.com/vs2005/downloads/netframework/default.aspx

    2. Copy the file gacutil.exe from the folder c:Program FilesMicrosoft .NETSDKv2.0bin to the machine where setup fails

    3. Download and install the Debugging Tools for Windows. You can download this from http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

    4. Rerun .NET Framework 2.0 setup on the machine that you see this failure

    5. During installation, leave the error message up on the screen

    6. While the error message is still on the screen, open WinDBG

    7. From the File menu, choose Open Executable…

    8. In the File name text box, enter the following information: c:gacutil.exe (or wherever you copied gacutil.exe to in step 2 above)

    9. In the Arguments text box, enter the following information: /i c:windowsMicrosoft.NETFrameworkv2.0.50215System.EnterpriseServices.dll

    10. After entering the above information, choose Yes to save base workspace information

    11. Press g in the Windbg window to resume execution until the process crashes, then save the crash log to a file

    If you can send me the crash file I will try to take a look and see if I can figure out how to fix this.

  16. Fei says:

    Hi,

    I’m also having the same error which Dmitri has while installing .net framework 2 beta 2 :

    Error 25015.Failed to install assembly

    ‘C:WindowsMicrosoft.NETFrameworkv2.0.50215Microsoft.VisualBasic.Vsa.dll’ because of system error: Access is denied.

    I’ve already tried both things that astebner suggested to do, but still doesn’t work. In File Monitor, I didn’t find any "ACCESS DENIED" result. I found only "PATH NOT FOUND" results as an error message, it’s said that some dll not found in C:I386.

    Any idea?

    Thanks

  17. Hi Fei,

    First of all, I would suggest making sure that you have disabled any antivirus or anti-spyware applications (temporarily of course) during the course of setup. Sometimes those can interfere with installation and cause access denied errors. However, I would definitely expect to see a message in FileMon for any access denied error, so that is odd.

    Do you see a pop-up dialog for this 25015 error? If so, can you try to use the tool gacutil.exe and manually install the assembly to the GAC while that error is on-screen and see if it gives any additional error information. You will need to do the following to try this:

    1. Install the .NET Framework 2.0 beta 2 and .NET Framework 2.0 SDK beta 2 on a separate machine (you can get them at http://lab.msdn.microsoft.com/vs2005/downloads/netframework/default.aspx)

    2. Copy gacutil.exe from %programfiles%Microsoft.NETSDKv2.0bin to the other machine where this failure is happening

    3. At the point of failure, run gacutil /i C:WindowsMicrosoft.NETFrameworkv2.0.50215Microsoft.VisualBasic.Vsa.dll and let me know what the output is

    Hopefully this helps…

  18. Andy says:

    Many thanks for your detailed reply to my original post of June 17. However, I’m pleased to report that after running assorted clean-up & registry repair utilities, .NET Framework 2.0 re-installed without problem, swiftly followed by VS2005 Team beta 2.

  19. Hawk says:

    Thank you for your work in creating this clean up utility.

    After an OS repair from the restore cd I could not reinstall Net Framework.

    With the help of your utility, installation went smoothly.

  20. David Albert says:

    Aaron:

    I was just cleaning up my \desktop and noticed your removal utility lingering thereupon. (I had put it to use on April 30 … exactly 3 months ago … so it appears.)

    Alas, I owe you very special thanks for finally rectifying a maddening .net botched install … one which caused me continuous grief at the hands of my antivirus software — which persistently admonished me for an out-of-date windowsupdate status. (Windowsupdate was unable to apply .net patches … because of the botched install.)

    In any case, I don’t know who you are … but you have my vote for software philanthropist of the year. May good things come to you in abundance.

    Thank you,

    David

    7/30/2005

  21. George says:

    I am seeing the following problem when trying to install on Windows 2000 Service Pack 4. This machine has never had .net framework of any kind on it before. Not sure if there is something else out of whack here … This is from the fail log

    8/14/05 14:15:01 DDSet_Entry: RunProcess started

    08/14/05 14:15:01 DDSet_Status: CustomActionData: "C:WINNTMicrosoft.NETFrameworkv2.0.50215regtlibv12.exe" "C:WINNTMicrosoft.NETFrameworkv2.0.50215mscoree.tlb";11

    08/14/05 14:15:01 DDSet_Status: Process returned 5

    08/14/05 14:15:01 DDSet_Error: The Commandline ‘"C:WINNTMicrosoft.NETFrameworkv2.0.50215regtlibv12.exe" "C:WINNTMicrosoft.NETFrameworkv2.0.50215mscoree.tlb"’ returned non-zero value: 5.

    08/14/05 14:15:01 DDSet_CARetVal: 5

    08/14/05 14:15:01 DDSet_Exit: RunProcess ended

  22. Hi George – this sounds like the error described at http://blogs.msdn.com/astebner/archive/2005/08/09/449720.aspx. Can you try the workaround listed there and see if that will resolve this problem on your computer?

  23. tpham says:

    I need to reinstall Team System Server but a message says ‘setup has detected existing Team Foundation databases on this machine and this operation cannot be continued. Please refer to the accompanying documentation on how to reuse this machine.’

    I can’t find the afore mentioned documentation on the TS Server Beta 2 guide…

  24. George says:

    Aaron, Just wanted to let you know I tried the workaround you recommended based on my prior post. This work around solved the problem and I was able to successfully install the 2.0 .NET framework. Sorry I was not more diligent about looking at the other content in your blog.

  25. George – I’m glad that the workaround was successful. It is hard to find all of the random comments I’ve posted, so there’s no need to say sorry. I’m going to try to pull some stuff together into a parent post that serves as kind of a troubleshooting guide with a bunch of sub-links to my other posts, but I just need to find time to get it all typed up πŸ™‚

    Tpham – I received your email and sent you the following set of steps, which you indicated resolved your issue (I’m posting them here for any others who happen to read my blog):

    1. Uninstall the Data Tier

    2. Launch SQL Management Studio

    3. Delete all of the following databases if they exist:

    BisDB

    BisDWDB

    CurrituckDB

    ELeadDB

    Psshared

    VSTEAMSCC

    VSTEAMSCCAdmin

    4. Re-run Data Tier setup

    If you are performing a single server setup, you will need to do all of the above plus the following additional step:

    5. Uninstall ADAM (this can be done before or after uninstalling the Data Tier)

  26. Neil Faigenbaum says:

    I had VS Beta 2 installed successfully and wanted to cleanup my machine. I went thru all the steps to uninstall. When I tried to re-install, it fails on the .net Framework. I tried using your tool and it fails with the message, "Error creating process \cleaup.exe reason c:winxpadvpack.dll. Any help would be greatly appreciated. I am dead in the water until I can re-install.

  27. &amp;nbsp;

    Deciphering specific HRESULT values

    HRESULT 0x80070002 and 0x80070003

    HRESULT 0x80070005…

  28. Tzvi says:

    Hi tpham

    Regarding the Team System Server installation , you should just go to the SQL server and delete all the databases that you dont know , make sure to leave the Report & ReportServer databases , otherwise you need to reinstall the SQL 2005 report service

    Cheers and good luck ,

    -Tzvi

  29. Ron says:

    Hi Aaron –

    Thanks for all your efforts on this blog, I found it extremely useful, and came close to solving my .NET Framework problems, but fell shy of the solution. I am guessing, given your new job, that you will know the answer handily.

    After much effort, I found I needed to use your clean-up tool to remove 1.0 and 1.1. The good news is I can easily re-install 1.1, but the program that asks for the original source CD to install 1.0 would not correctly recognize my MCE 2005 CD.

    How can I re-install .NET Framework 1.0 on an MCE 2005 machine?! Are there manual steps listed somewhere, or a way to force msiexec to recognize the original install CD/netfx.cab?

    Thanks,

    Ron

  30. Hi Ron – .NET Framework 1.0 is installed as part of the operating system on Windows XP Media Center Edition (and Tablet PC edition). Therefore you cannot re-install it by simply running the dotnetfx.exe package or any msiexec command lines.

    The instructions for repairing the .NET Framework 1.0 that comes as part of the OS on MCE and Tablet are a little bit complicated, so I posted a separate blog item about this, you can find it at http://blogs.msdn.com/astebner/archive/2005/09/01/459631.aspx.

    I know they are kinda convoluted, so if you have any issues please don’t hesitate to contact me at aaronste (at) microsoft (dot) com and I will do my best to assist you….

  31. Frederic R. says:

    Oh god …

    i used your item as a last hope …

    and

    it’s really …

    really…

    REALLY

    giving me hope πŸ™‚ IT WORKS !!! It removed all of thoses annoying errors and just let me use all of these .NET stuff efficiently

    I give you a BIG and HUGE and WARM thank. I was desperate and you guide me on the right way πŸ˜‰

    Regards

  32. jdMcF says:

    Those with XP Home Edition (my dad) need to restart in safe mode if you want to see the security tab in windows explorer.

  33. Oleg says:

    I can’t download you’r removal tool. Link isn’t working…

  34. Hi Oleg – 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 tool directly instead?

  35. Nigel Cooper says:

    Hi Aaron,

    Thank you for getting me out of a problem I suspect I caused! I am not as computer literate as, thank god, you are.

    Your utility recovered a clean computer for me, allowing re-install of .NET 1.0 which my WiFi media player demands. (I will soon proceed to getting 1.1 back online) I shall think twice about using MS add/remove progs for .NET in future as it left me unable to re-install….until your utility!

    Thanks again, your posting of this utility is a selfless and much appreciated act in picking up the pieces after microsoft abandons its customers.

  36. artur says:

    I can’t install Microsoft .NET Framework 1.1 or 2.0, it reports me an error

    "Error 25015.Failed to install assembly ‘C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.Vsa.dll’ Because of system error: The system cannot find the path specified."

    Did anyone have such problems or any idea how to solve this.

  37. eshu says:

    i´ve been in serious problems with my xp..

    gradually i´m recovering it back, day by day..

    i had this .NETFramework issue for days, and now thanfully to thee i´ve mannaged to resolve it πŸ™‚

    thx. and keep on going πŸ™‚

    thx. A!

  38. patrick says:

    1.1 would not install on win98. Your tool resolved the problem immediately.

    THANK YOU

  39. dan says:

    Hi there

    Where would I find the program for the NET FRAMEWORK INSTALLER on the windows CD. My reason is that I have two different versions of xp pro….one has problems installing but net framework programme is good and the other installs windows perfectly but not the net framework…..I wish to combine best of both onto one cd.

    hope this makes sense.

    regards

    dan

  40. Hi Dan – If you have a CD with XP Pro with SP1 integrated, you can find the .NET Framework 1.0 in the dotnetfx folder in the root of the CD. If you have a CD with XP Pro with SP2 integrated, you can find the .NET Framework 1.1 and 1.1 SP1 in the dotnetfx folder in the root of the CD.

    Also, you can download the .NET Framework from the web as a standalone package. Check out the links at http://msdn.microsoft.com/netframework/downloads/updates/default.aspx.

  41. McKirahan says:

    ****ERROR**** Cleanup failed for product .NET Framework – Both Versions

    The above error was the last line in the cleanup_main.log file created when using your tool.

    I just bought two Wrox books on ASP.NET programming and will be installing the following on my Windows XP SP2 machine:

    1) Microsoft .NET Framework Version 2.0

    2) Visual Web Developer 2005 Express Edition

    3) Microsoft SQL Server 2005 Express Edition

    My PC already had .NET Framework 1.0 and 1.1.

    I tried removing both via Add/Remove Programs but the process never completed.

    I thought I had to remove them before I installed 2.0 — was I wrong?

    What should I do know? Thanks in advance.

  42. Hi McKirahan – I’m sorry for the hassle here. The first important thing to mention is that the .NET Framework 1.0, 1.1 and 2.0 are designed to be side-by-side, so you can definitely have all 3 versions installed at the same time.

    I think the best route to go now that you have tried to remove 1.0 and 1.1 is to use the instructions that I posted at http://blogs.msdn.com/astebner/archive/2005/10/11/479928.aspx to clean and reinstall both 1.0 and 1.1, and then install 2.0 and the WebDev and SQL 2005 Express editions.

    Please contact me at http://blogs.msdn.com/astebner/contact.aspx if you run into any issues getting these steps to work…

  43. Kenneth Sampath says:

    What a wonderful tool is your removal tool for removing framework 1.1. I had a problem with this and I could not even re-install or even delete using the windows add/ removal process.

    I found your link and it removeit. I reinstalled the software. Thanks for your help

  44. N.Gopalakrishnan says:

    Hello,

    I’am using win xp sp2.I’am unable to install the .net framework 2.0.Getting err 25015:failed to install the assembly.so as per the advice i used the removal tool.but still i’am getting the same problem, is there any alternative way to repair the problem?.

  45. Hi N.Gopalakrishnan – For the .NET Framework 2.0 can you please try the manual cleanup steps that I have listed at http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx and see if they help? I am in the process of updating the automatic removal tool to include .NET 2.0 also but I have not yet had time to finish it. I hope this helps in the meantime….

  46. jimh1008 says:

    Great tool…..cleaned up a rather sloppy install of .NET Framework 1.1, Service Pack 1.

  47. jw says:

    I recieved this error while trying to unstall v2.0 beta.

    Error 25015.Failed to install assembly

    ‘C:WINDOWSMicrosoft.NETFrameworkv2.0.50215Microsoft.VisualBasic.Vsa.dll’ because of system error: Data error (cyclic redundancy check).

  48. Hi JW – if you are receiving an uninstall error for the .NET 2.0 beta, can you please try the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove it and see if that gets you past this error?

  49. Sure_I_can says:

    Thanks, worked for me!!!

  50. Tink says:

    I don’t know if you got this submit:

    Dear Aaron,

    HUGE THANKS! I have to praise (big praise) you SO much for your gift of that cleanup tool!!! I went through all the steps to try to find out why the MS update failed in two new machines I was installing for husband/self. I had started getting errors like those noted in some of your blog pages, and that type of thing is a major warning to "cleanup."

    I tried walking through the long drawn out fix offered at the MS site (having drilled through many URLS until I got there) and THEN I got stuck on the fix because files/dirs they said to delete would not delete!

    Ultimately, I couldn’t figure out why a security download would NOT install and I wanted that security. I was JUST about to give up after 3 hours into this, when I found YOUR page and downloaded this cleanup tool. Long story short, NOTHING worked until I used your cleanup tool.

    For those who might be stuck like I was… Here were my steps to overcoming this "painful" problem (many thanks to Aaron’s help!):

    Went here for the dotnetfx.exe file:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&DisplayLang=en

    1. Downloaded/extracted the dotnetfx.exe files into a dotnet directory/folder on drive C like this (thanks to Aaron). StartRun then typed in: dotnetfx.exe /t:c:dotnet /c

    2. I used Aaron’s "Cleanup tool" dotnetfx_cleanup_tool.zip by simply opening the zip and running cleanup_tool.exe This worked like a charm.

    3. Then … to install .NET Framework 1.1 I went to my "dotnet" directory and double clicked: netfx.msi

    PARTIAL VICTORY!

    NOTE: I went to the following to download…

    http://www.microsoft.com/downloads/details.aspx?FamilyID=8ec6fb8a-29eb-49cf-9dbc-1a0dc2273ff9&DisplayLang=en

    Security Update file: NDP1.1sp1-KB886903-X86.exe

    Microsoft’s notes:

    "ASP.NET Security Update for Microsoft .NET Framework 1.1 Service Pack 1"

    I attempted to install NDP1.1sp1-KB886903-X86.exe

    and got this message:

    "COULD NOT INSTALL NDP1.1sp1-KB886903-X86.exe with this error message:

    "Info 9006. This patch cannot be installed because it requires Microsoft .NET Framework 1.1 Service Pack 1(SP1). No Microsoft .NET Framework 1.1 SP can be detected on this computer. Please see http://support.microsoft.com/?kbid=886903 for more details."

    SO…I went back to the MS Windows update site…

    4. I still had KB886903 update to install. I did so…and Bingo.

    Done.

    Aaron, I wouldn’t have gotten there without your help. This type of problem is COMPLETELY obnoxious and a time waster. Even so…I would not have been able to resolve this without your hard work and I thank you!

    Tink

  51. Stephen Adams says:

    Hello Aaron! I’m on my last leg here. πŸ™

    Just recently built a new computer. XP SP2 running an A64 chip. I

    installed Visual Studio 2003 and Visual Studio 2005 and as part of the

    prereqs, both v1.1 and v2.0 of the framework respectively. I was able

    to compile and run web applications, but after compiling and running a

    windows application from either Visual Studio I received a "Application

    failed to initialize properly." error everytime no matter what

    application I compiled. My web apps worked, but my windows forms

    didn’t. Strange. This led me to believe it was a possible corrupted

    framework problem.

    So I uninstalled the v1.1 framework and tried reinstalling, but

    everytime I got this message:

    "NET Framework 1.1 Setup has ended prematurely"

    This happens right at the very last step when trying to setup

    System.EnterpriseServices

    I’ve tried renaming mscoree.dll, removing all the .NET components,

    running clean up tools, and everytime I run the 1.1 framework installation it won’t install. It keeps failing at the very, very, very last step. πŸ™

    PLEASE, PLEASE help me here. I need to have these development environments

    installed. They were installed before, but I had to uninstall them to

    fix this problem, and now I can’t even install the .NET frameworks.

    I’ve never seen this issue before and I’ve been reading all over, and

    every thing I’m told to do doesn’t work. I just need a clear cut

    solution to remove the .NET framework remnants and clean anew WITHOUT

    having to reformat.

    Thanks much Aaron, hopefully you can help me. πŸ™‚

    -Steve

  52. Marcus says:

    Hi, I have the same problem as Dave above, the installation hangs on the registration step. I ran the removal tool and it still hangs. Any other ideas. Thanks, Marcus

  53. Marcus says:

    Hi, I have the same problem as Dave above, the installation hangs on the registration step. I ran the removal tool and it still hangs. Any other ideas. Thanks, Marcus

  54. Marcus says:

    Update: I went into Services and disabled the Distributed Transaction Coordinator, rebooted and then installed after running your cleanup program. It is now working. Hope this helps.

  55. Stephen Adams says:

    Update:

    Here’s the error log from my generated log file:

    MSI (s) (60:18) [16:33:35:203]: Executing op: ActionStart(Name=CA_ComregEnterpriseServicesRB.3643236F_FC70_11D3_A536_0090278A1BB8,,)

    Action 16:33:35: CA_ComregEnterpriseServicesRB.3643236F_FC70_11D3_A536_0090278A1BB8.

    MSI (s) (60:18) [16:33:35:234]: Executing op: CustomActionSchedule(Action=CA_ComregEnterpriseServicesRB.3643236F_FC70_11D3_A536_0090278A1BB8,ActionType=3393,Source=BinaryData,Target=_QuietExec@4,CustomActionData="C:WINDOWSMicrosoft.NETFrameworkv1.1.4322RegSvcs.exe" /bootstrapu)

    MSI (s) (60:18) [16:33:35:265]: Executing op: ActionStart(Name=CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8,Description=Registering System.EnterpriseServices.dll,Template=Executing: [1])

    Action 16:33:35: CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8. Registering System.EnterpriseServices.dll

    MSI (s) (60:18) [16:33:35:296]: Executing op: CustomActionSchedule(Action=CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8,ActionType=3073,Source=BinaryData,Target=_QuietExec@4,CustomActionData="C:WINDOWSMicrosoft.NETFrameworkv1.1.4322RegSvcs.exe" /bootstrapi)

    MSI (s) (60:0C) [16:33:35:359]: Invoking remote custom action. DLL: C:WINDOWSInstallerMSI15.tmp, Entrypoint: _QuietExec@4

    CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8: Executing: ERROR: Process returned non-0 value! CMDLINE: "C:WINDOWSMicrosoft.NETFrameworkv1.1.4322RegSvcs.exe" /bootstrapi

    CA_ComregEnterpriseServices.3643236F_FC70_11D3_A536_0090278A1BB8: Executing: Failed

    Action ended 16:33:36: InstallFinalize. Return value 3.

  56. Hi Marcus – Thank you for posting the workaround that worked for you. I have seen this workaround solve other issues as well, so I created a new blog post to describe this workaround. It is located at http://blogs.msdn.com/astebner/archive/2006/01/08/510677.aspx

    Hi Stephen – can you please try this workaround and see if it helps for you? If not, there are a couple of other suggestions listed in that blog post for other possible fixes for this error in .NET Framework 1.1 setup.

  57. Eric H says:

    This worked perfectly! Thanks so much for the removal tool. Trying to run the command prompt fixes failed to many times to try. Again thanks for the help it worked wonders.

    Eric H.

  58. ChristophD says:

    Great, you’re my rescue!

  59. Derek says:

    I was receiving an error installing the 2.0 Framework with an ‘Access Denied’ error on the file Microsoft.VisualBasic.vsa.dll and I thought I would post the solution I found as other people have been encountering it.

    By using FileMon, I could see that the ACCESS DENIED error was actually being return when the setup tried to create the file GACLock.dat in the folder c:winntassembly

    For some reason, Administrators had lost permission to write to this folder.

    I was not able to apply permissions using Windows Explorer, but could set Administrators to having full control in this folder by using the following CALCS command from the command line:

    calcs c:winntassembly /E /P BUILTINAdministrators:F

    After this the framework installed OK.

  60. Zan says:

    Hi,

    I’m using Windows XP x64. I am trying to uninstall Microsoft .NET framework x64 BETA 2 (Shipped with VS 2005 BETA). The framework seems to have had installed a couple of important files in ‘Program Files (x86)’ which contains, due the uninstaller, ‘illegal characters’ (the parantheses?). Because of this issue I can’t uninstall Microsoft .NET framework x64, which I have to do in order to be able to install VC++ Express Edition.

    The only error message I get is:

    ‘Error 1324.The folder path ‘Program Files’ contains an invalid character.’.

    Is it possible to change the registry keys somewhere from ‘Program Files (x86)’ to perhaps ‘Progr~2’? Or is there another method?

  61. Hi Zan – I don’t think the parentheses is an invalid character since Windows allows you to create a folder with that name. Can you please try the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to try to manually remove the .NET Framework 2.0 beta that you have on your system? Hopefully that will get you past this error.

  62. James Muir says:

    I just wanted to say thanx for this excellent tool.

    I had apparently insoluble problems with .Net 1.1, and you tool fixed it immediately.

    Thanx very much,

    James Muir

  63. Dr. Evil says:

    Not even Liquid Hot Magma could solve a corrupt .Net install. That is, until your program saved the world, or at least small portion of it. THANK YOU!

  64. Fabrício Reuter says:

    Work fine… thank you very much…

  65. gody says:

    I get the error message "Error 25015.Failed to install assembly … Vsa.dll’ because of system error: Data error (cyclic redundancy check).  

    what can i do ..

    i am running windows XP media center and SP2

    i need helpplis…

    you can send me an email to nx_2020@hotmail.com coz its urgent

  66. Hi Gody – can you please try to use the manual removal steps for the .NET Framework 2.0 that are listed at http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx and then try to re-install the .NET Framework 2.0 and see if that resolves this issue?  If that doesn’t help, I would suggest contacting Microsoft technical support (you are entitled to a free support call for .NET Framework setup issues).  I’m sorry I’m not able to be more helpful here.

  67. Karl says:

    Thank You. Saved me a complete reinstallation!!!

  68. Michael Gold says:

    Hi Aaron,

    Wanted to thank you.  We couldn’t get .NET 1.1 off the machine and kept getting this silly dialog.  Your tool worked like a charm.

    Best,

    -Mike

    C# Corner

  69. AndyC says:

    Hi,

    I also have the error Failed to install assembly…Vsa.dll The Device is not Ready.

    I’ve tried setting the security settings as Derek suggests, and running FileMon doesn’t return an error.

    From dd_netfx20:

    03/11/06 10:27:29 DDSet_Error: Failed to install assembly C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.Vsa.dll. IAssemblyCache->InstallAssembly() returned -2147024875.

    03/11/06 10:27:29 DDSet_Error: Failed to install assembly ‘C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.Vsa.dll’ because of system error: The device is not ready.

    FileMon notes End Of File on VisualBasic.Vsa.dll but no failures.

    Can anybody suggest anything else to help?

    Thanks,

    AndyC

  70. AndyC says:

    Guys,

    I’ve solved this problem. I had to remove all my framework versions and then in my Windows/Assembly directory I had some existing subdirectories that needed clearing out, including GAC_32 and GAC_MSIL.

    I’m not sure what happened along the way to cause this problem, as I had hoped to run different framework versions alongside each other. But thanks to Aaron, using your manual uninstall process got everything working again.

    Thanks,

    AndyC

  71. Hi AndyC – I’m glad to hear you got this issue resolved.  In case any other folks read these comments, the manual steps Andy is referring to are located at http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx.

  72. Steve Yates says:

    Hi,

    We have one PC that gets the following error in the Microsoft CRM 3.0 Outlook Client installer, and can’t get past the system requirements phase of the installation:

    "Microsoft CRM Client for Outlook Setup User Input File or assembly name 9o3db28v.dll, or one of its dependencies, was not found."

    (the file name is random and changes on every installation attempt).  Any suggestions?  Do you think removing the .NET Framework might help?  The user is a local administrator and has rights to the user and system Temp folders.

    – Steve Yates

    – ITS, Inc.

    – DUNGEON MASTERS do it any way they feel like.

    ~ Taglines by Taglinator 4 – http://www.srtware.com ~

  73. JR says:

    Thanks! I had an XP machine in .NET confused state for some time now (can’t install, can’t un-install…) and this fixed it.

    Thanks!

  74. Hi Steve – I am not sure if this issue you describe is related to the .NET Framework or not.  Could you post a link to where you are installing that CRM setup package from so I can try to take a look and see if I can figure anything out?

  75. Jmonkey says:

    I used the uninstaller "ttool.exe", but all it did was remove my newest version of .net framework 2.0. I’m looking for a tool to remove the beta 2 versions. I HAVE BEEN POINTED TO MICROSOFT ALREADY… I do not have any uninstallers. I have the installer that links to a dead end, therefore, I will never be able to get the uninstaller back. Is there anyone who has a list of the registers and folders so I can remove them myself, or is there a better program than the two similar ones from Microsoft. The one on their page gives me error message saying I might not have access to them if I am not an Administrator, but of course, I am… anyone who has the best way to remove these programs, can you think of a way without hurting my .net Framework 1.1 or 2003 registered version?

  76. Hi Jmonkey – Can you please try to use the instructions listed at http://msdn.microsoft.com/vstudio/support/uninstall/default.aspx to determine a list of the exact products you need to uninstall, and then use the individual Add/Remove Programs entries for each of those products?

  77. Steve Yates says:

    Hi Aaron,  the installer is part of CRM.  The complete path we’re using is this:

    msiexec.exe /i "\SERVER1ClientAppsMSCRMDesktopClientlightclient.msi" CONFIG="\SERVER1ClientAppsMSCRMDesktopClientdefault_client_config.xml"

    …however, copying the folder to the workstation and installing from there yields the same result.

    – Steve Yates

    – ITS, Inc.

    – Synonym:  A word you use when you can’t spell the other.

    ~ Taglines by Taglinator – http://www.srtware.com ~

  78. Jmonkey says:

    Again, let me reitterate what I just wrote… I DO NOT HAVE THE UNINSTALLERS…. I’ve also tried 2 versions of Microsoft’s uninstaller on that page and the one on one of this website’s pages. It says I do not have rights or something like that because I am not an Administrator. But I am!  I own the computer. I don’t have uninstallers, but I still have registers and assemblies and some hidden files in directories. I can remove the 8.0 version in program files, but there is much more to remove in sys32 in %windir% etc… I need to do this manually it looks like. ADD/REMOVE programs is out of the question. I have a registered version of 2003 in there, so I don’t want to hurt it. Any suggestions besides the obvious?

  79. Jmonkey says:

    To add to that last post, I have (had) Visual Studio 2005 Beta 2 EXPRESS. What programming languages… VB.net Express 2005 and Web Developer 2005 Express. I have the June version of SQL Server to install, but I need to remove the betas first. I don’t want to do it by myself so that I don’t delete needed files or registers of my 7.1 version. Some is obvious, some isn’t, some is hidden. Any manual suggestions? Or if there’s a 3rd BRAND NEW PROGRAM, NEW AS OF released today or anytime hereafter…any help beyond what is on main microsoft website is gratefully appreciated… Thanks again!

  80. Jmonkey says:

    One Additional question… I have the newest version of the framework 2.0 installed for other non-visual studio programs, one being Windows One Care… can this remain on and just install the visual studio 2005, or does the order really matter?

  81. Hi Jmonkey – I am not sure I understand your comment saying "I do not have the uninstallers" – does this mean that none of the beta VS 2005 versions show up in Add/Remove Programs at all?  If that is the case for you, can you please try to Can you please try to use the instructions listed at http://msdn.microsoft.com/vstudio/support/uninstall/default.aspx to determine a list of the exact products you need to uninstall, and then use the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove each of them.  Hopefully this helps.

    I would also be curious to know how your machine got into the state it is in.  I haven’t ever heard of a case where every entry disappeared from Add/Remove Programs like that (in the case of VS 2005, it installs somewhere between 5-10 different Add/Remove entries).  Have you done anything like a system restore recently that might explain the things disappearing from Add/Remove Programs like that?

    Hi Steve – can you please use the steps listed at http://blogs.msdn.com/astebner/archive/2005/03/29/403575.aspx to gather verbose logs for this setup and contact me via http://blogs.msdn.com/astebner/contact.aspx so I can see if I can figure anything out from the logs?

  82. Hi Jmonkey – I am sorry, it looks like you posted your last question as I was typing my previous reply, so I didn’t see it at the time.  The .NET Framework 2.0 is a prerequisite for Visual Studio 2005, so you will have to have it installed if you want to install VS 2005.  You will need to make sure you are installing the final release of VS 2005 and not one of the old beta versions though, because the final release of the .NET Framework 2.0 will only work with the final release of VS 2005.

  83. Jmonkey says:

    You know why I ask…I have cd’s sent to me from Microsoft with SQL 2005. And isn’t SQL 2005 a prereq to install Visual Studio 2005…? I try installing it, it’s a June 2005 Community Edition Release, and it tells me this reason…it goes first, followed by Visual Studio, then the framework. I know by Visual Studio 2003 Windows SP2 and framework 1.1 and a few other things were first. Maybe I read the page wrong…

  84. Hi Jmonkey – You cannot mix and match beta builds with final released builds.  It sounds like the CDs you have with SQL 2005 are from a beta version, so it will not install correctly if you have the final release of the .NET Framework 2.0 installed (because the .NET Framework 2.0 is a prerequisite for SQL 2005).  The .NET Framework 2.0 is a prereq of both VS 2005 and SQL 2005, and will need to be installed before installing either of those other products.

    However, SQL 2005 is not a prerequisite for installing VS 2005.  There is a version of SQL 2005 (SQL Express) included in VS 2005 setup, but it is an optional component and is installed after VS 2005.

  85. Luis says:

    Hi Aaron.

    First af all, excusme for my bad english.

    My problem is:

    I had the Microsoft .NET Framework 1.1 and the Microsoft .NET Framework 1.1 Hotfix (KB886903) installed on my Win XP Pro SP2.

    I uninstalled them in a wrong way: First, in Add/remove Programs, I unistalled the Hotfix, but WITHOUT restarting the machine, and then I uninstalled the Microsoft .NET Framework 1.1.

    This was fatal.

    Now, each time I start Wondows tow little error windows appears. I accept the two windows and the Win XP works.

    I tried to uninstall again with Add/remove Programs: Dont work.

    I tried to uninstall and repair with the Installer: Dont work.

    So, I can not unistall, repair or reinstall the Microsoft .NET Framework 1.1

    I want to unistall the Microsoft .NET Framework 1.1.

    What can I do?

    Can I try your tool?

    Thanks in advance.

    Luis.

  86. Lou S. says:

    Thanks so much for posting your site.  This tool did the trick for me in removing broken framework 1.1 release on my winxp home sp2 machine.  I could not uninstall or winUpdate although I tried many many time.  Your tool is wonderful and saved me a lot of grief.

    thanks again

    Lou

  87. Hi Luis – Can you please try the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/11/479928.aspx and see if they help resolve the issue that you are seeing on your system?

  88. Luis says:

    Hi Aaron.

    I used your tool and it works. It have uninstalled correctly the .NET Framework 1.1

    Then I have reinstalled the .NET Framework 1.1, the SP1 and the Hotfix

    That solved my problem.

    Tnak you very much.

  89. Mike says:

    Hey Aaron,

    This program was so it.  Thanks for this tool it was my last resort uninstall and reinstall microsoft .net 1.1 thanks man otherwise i would have had to reload my OS.

    great tool should be on google more easily took me 4 days to figure this out.

  90. Tim says:

    To everyone who had a hand in the fantastic clean up tool….

    You guys are great and have saved me from a huge headache (and reinstalliation of my pc)

    Thank you so much

  91. Shaun says:

    I just wanted to say thanks!! You saved me so much headache with this tool. Worked absolutely wonderfully!! I was searching all over trying to figure out how to remove the .net frame work because I was having trouble and stumbled across this page and found this wonderfull piece of software πŸ˜‰

    Keep up the good work!!

    Shaun (sparkison@frii.com)

  92. Jodie says:

    Awesome. I’ve been trying in vain to install NF 1.1 on XP Home, but the install always ended early with an error 1935 message. Your tool worked like a charm and right after the cleanup, NF installed without a hitch. Whew! I appreciate your help so much! and thank you for generously sharing your time and talent.    

  93. Merlijn says:

    once more, thanks alot, this solved my problem in notime!

  94. rey achh says:

    Hi , iam a tech support engineer for " NortonGhost" .

    NG 10.0 uses .net framework 1.1 to run.

    I came accross an issue with the customer where NG 10.0 gave an error fatal exception.

    I tried uninstalling .net 1.1 from add/remove programs , it did not uninstall .net framework 1.1.

    I started searching google for workarounds, i found your link , downloaded your cleanup tool … and executed it …

    Vowww ….. it removed .netframework 1.1.

    This tool is really an excellent tool

  95. mafus says:

    I just recently installed windows xp x64 edition and i couldnt get the .net 2,9 x64 to install, i check my windows folder and noticed it was read-only laugh my butt off. anyway if anyone is having problems with x64 version i would check the windows folder for read only thnx guys

  96. mgm says:

    You mentioned that you were going to get a KB article written up with a copy of the cleanup tool. Have you had time to do that? Some people around here feel more comfortable with us using a tool that is "official"!

  97. Hi Mgm – I am still talking to the team that writes knowledge base articles to figure out how best to communicate this.  Currently, the steps performed by the cleanup tool are listed in existing knowledge base articles as manual steps, and the tool just automates those steps.  I understand the greater comfort level with using a tool that is more "official," but for now this is all I can offer…

  98. Hi Mgm – I am still talking to the team that writes knowledge base articles to figure out how best to communicate this.  Currently, the steps performed by the cleanup tool are listed in existing knowledge base articles as manual steps, and the tool just automates those steps.  I understand the greater comfort level with using a tool that is more "official," but for now this is all I can offer…

  99. Jim says:

    Have net framework 1.1 and service pack on computers.  Each and everyday it tries to reinstall over and over again.  Do you have a fix for this install, and why if it’s already installed is it trying to reinstall again.  Thanks, Jim

  100. Hi Jim – I would suggest trying the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/11/479928.aspx to remove and reinstall the .NET Framework 1.1 and see if that resolves this problem.

  101. Tim Warble says:

    Is anyone able to navigate to the http://astebner.sts.winisp.net site?

  102. Hi Tim – My file server is currently down for maintenance.  Please see http://blogs.msdn.com/astebner/archive/2006/06/07/621524.aspx for more information and alternatives in the meantime.

    Sorry for the hassle….

  103. Stawik says:

    Yeah, where this disapired? Im looking for that tool too.

  104. Hi Stawik – My file server is down yet again, I’m sorry for the hassle.  I’ve temporarily staged this at http://play.mediacentersandbox.com/tools/dotnetfx_cleanup_tool.zip so you should be able to get it from there.

  105. rican says:

    I have windows xp home edition. I seem to have a problem with my Microsoft.net framework. When i turn on the computer, everything starts loading, but then this box comes up showing: Microsoft,net framework an unhandled exception has occurred in a componant to your application. Also below that it show also: File or assembly name hpqasset, or one of its dependencies, was not found. I would try to hit continue assuming it’s gonna fix the problem, then an installer comes up, but it won’t let it install, i’m having to get rid of it by hitting ctrl, alt, delete, and when i do it’s showing that the installer is running, is the only way i can get rid of the box, because it won’t get rid itself, but nothing else helps. Please if anyone has any idea for me to fix this.

    Thank You Rican

  106. Hi Rican – I am not sure what the file "hpqasset" is, but it is not a part of the .NET Framework.  I think that the error is just being reported by the .NET Framework because the other program is a .NET application.  I would suggest trying to find what program the file "hpqasset" is a part of and then repairing that program.

  107. sepharg says:

    i just wanted to thank you for this great tool, i have spent like 4 hours trying to uninstall manually but all the times with no success, always some strange error (and worst, all different ones) arised every time.

    used the tool and now i got everthing (vs 2003, iis on windows xp) working perfect again

    thanks!!!

    ps : i will add a reference to your blog in my blog and also put a link to download this tool so many spanish talking people can make use of it as well

  108. tortoise says:

    Just another grateful user who wishes to express my thanks for saving what is left of my Sunday after having fought this problem for most of the day on a clients machine that defied all attempts to fix or repair. Finally stumbled on your tool and glory be it has fixed this miserable PC. I can’t thank you enough for your diligent work that continues to help users years after this problem reared it’s ugly head. I will save your tool and my notes but hope I never need them again.

  109. webmasta says:

    Quite a tool you have there Aaron… it helped my situation in a way but I am still stuck with this MS PoS they call .NET after a 4 day merry go round.

    My issue is that .NET was working on my XP box since 2004 when I installed the whole shebang including the 2003 IDE from an educational CD as part of a .NET course.

    Recently a trojan sneaked into my box and all .NET apps failed with ‘error 0x0000005’ which really doesnt say anything helpful(TM microsoft errors)

    Obviously I attempted to reinstall/repair the installation from the original CD with no success, .NET install would fail with ‘setup ended prematurely’… which again really doesnt say anything helpful(TM microsoft errors)

    Finally I got to understand it was because I had hotfix(kb866903). Trying into uninstall the hotfix was a nitemare itself, just wouldnt go, add-remove would blink and refresh without uninstalling the hotfix.

    I got your removal tool which cleared up the 1.1 install but didnt touch the hotfix… same as with the Windows Installer Cleanup utility

    from this link:

    http://download.microsoft.com/download/E/9/D/E9D80355-7AB4-45B8-80E8-983A48D5E1BD/msicuu2.exe

    I followed the steps outlined here:

    http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21409539.html

    which moved things a bit further on and took the hotfix out of add-remove but really didnt uninstall it completley.

    .NET still wouldnt install, ‘setup ended prematurely’.

    What would you suggest to completly get the hotfix out so that I can do a clean install? (apart from giving this .NET PoS its first flying lesson out of the box and straight through the window?)

    Aside from that, I finally learnt that installing with MSI from a CD is total crap since the uninstall info is linked to a .tmp file thats long gone what you try to repair/uninstall. (which bright spark at MS could have dreamed up that crap(TM microsoft))

    Thanx/webmasta

  110. Hi Webmasta – I’m very sorry for the experience that you’ve had with the .NET Framework so far.  Error code 5 means "access is denied" and I’ve seen some cases of this in the past caused by anti-virus scanners and/or some incorrect file permissions.  Can you try the workaround listed at http://blogs.msdn.com/astebner/archive/2005/08/16/452523.aspx and if that doesn’t help, try the workaround listed at http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx?

    If this doesn’t help, please contact me at Aaron.Stebner (at) microsoft (dot) com so I can gather verbose logs and try to advise further.

  111. webmasta says:

    Thanx Aaron… I looked over your suggestions and decided to do it my way – brute force and ignorance – simply because I was quite fedup with trying any and every workaround I came across and I wanted to have the option to uninstall in the future.

    I cleand up with your tool and also the windows cleanup utility.

    I identified anything that had to do with .net and vs2003 and manually deleted – from files, folders all the way to reg entries.

    Ran Registry Mechanic to scrub the registry.

    Downloaded .net 1.1, the sp1 and hotfix 866903 and installed in that order … it worked… tried uninstalling and that worked too.

    Interesting observation: before all this, add/remove was reporting .net and hotfix at 249MB each, now with the new install they both come in at under 24MB each… where the previous bloat came from is still a mystery.

    webmasta.thnx/

  112. noracrub says:

    A few days ago, I installed .NET Framework v1.1 but that generated an error message:

    Application has generated an exception that could not be handled.

    I used add/remove programs to remove .NET Framework v1.1 and then installed v2.0.

    Now I’ve been getting error messages at startup which point towards .NET. I used add/remove to uninstall .NET Framework 2.0, but Add/Remove Programs still shows two related listings which I’m unable to remove usind Add/Remove:

    .NET Framework v1.1

    .NET Framework v1.1 hotfix (KB886903)

    When I try to remove the first one, I get the message "this patch package could not be opened." When I select and try to remove the hotfix, nothing happens.

    I’m getting two error message startup. The first one is:

      Fatal Execution Engine Error (0x7927e03e)

    The second one (NotifyAlert.ext — Common Language Runtime Debugging Services):

      Application has generated an exception that could not be handled.

      Process id=0xbx04(2880), Thread id=0xb08(2824)

      Click OK to terminate application

      Click CANCEL to debug the application

    The id number seems to change in this message on each restart. Hitting Cancel does not allow debug to run.

    Any suggestions on how to completely get rid of .NET? I’ve done some googling on this issue and many suggestions are too extreme for me — such as reinstalling the OS. I don’t want to go down that road unless it’s a last resort. The  I found your blog which has a link for a .NET cleanup tool but I’ve been unable to load the page specified in the link or get to the zip file any other way.

    Two questions, is it likely that the cleanup tool would remedy my problem and if so, is there somewhere else I could go to, to download the file.

    Thank you and sorry my comment has been so rambling. I’m not technical but wanted to provide as much info as possible.

  113. noracrub says:

    Posted a lengthy comment/question last night but it still hasn’t appeared. Unable to download the cleanup tool from the link the main post. Is there anywhere else to get the tool?

  114. Hi Noracrub – Unfortunately, the file server I have been using is down and I don’t have an ETA for when they’re going to fix it.  For now, I can send you a copy of the cleanup tool via email if you contact me using http://blogs.msdn.com/astebner/contact.aspx.  I’m sorry for the hassles.

  115. kkk says:

    Hello Aaron! I’m on my last leg here. πŸ™

    Just recently built a new computer. XP SP2 running an A64 chip. I

    installed Visual Studio 2003 and Visual Studio 2005 and as part of the

    prereqs, both v1.1 and v2.0 of the framework respectively. I was able

    to compile and run web applications, but after compiling and running a

    windows application from either Visual Studio I received a "Application

    failed to initialize properly." error everytime no matter what

    application I compiled. My web apps worked, but my windows forms

    didn’t. Strange. This led me to believe it was a possible corrupted

    framework problem.

    So I uninstalled the v1.1 framework and tried reinstalling, but

    everytime I got this message:

    "NET Framework 1.1 Setup has ended prematurely"

    This happens right at the very last step when trying to setup

    System.EnterpriseServices

    I’ve tried renaming mscoree.dll, removing all the .NET components,

    running clean up tools, and everytime I run the 1.1 framework installation it won’t install. It keeps failing at the very, very, very last step. πŸ™

    PLEASE, PLEASE help me here. I need to have these development environments

    installed. They were installed before, but I had to uninstall them to

    fix this problem, and now I can’t even install the .NET frameworks.

    I’ve never seen this issue before and I’ve been reading all over, and

    every thing I’m told to do doesn’t work. I just need a clear cut

    solution to remove the .NET framework remnants and clean anew WITHOUT

    having to reformat.

    Thanks much Aaron, hopefully you can help me. πŸ™‚

  116. Hi K – Can you please try the suggestions listed at http://blogs.msdn.com/astebner/archive/2006/05/17/workaround-for-possible-timing-issue-that-can-cause-net-framework-setup-failures.aspx and see if they help in this scenario?

    If none of those help, can you please use the steps listed at http://blogs.msdn.com/astebner/archive/2005/03/29/403575.aspx to gather and zip and send me a verbose log file of the installation failure?  You can send it to Aaron.Stebner (at) microsoft (dot) com.

  117. noracrub says:

    Hi Aaron, thank you for the cleanup tool which you sent me on 11/21 — it did the trick! Seemed to remove all traces of .NET. However, after uninstalling it, I did find that I couldn’t live wihout it. My Dell Dimension 8300 starting yelling for it with an rng.exe error message. I reinstalled .NET 1.1 from my Windows XP CD and all is OK again now with no more error messages.

    Thank you again.

  118. i32123 says:

    A recent Windows Update failure (Error number 0x80190193)

    encountered when applying patch kb886903 to .NET 1.1 SP1

    was completely resolved and eliminated by temporarily

    shutting down an old version of the ZoneAlarm firewall.

    (A dozen other, more complicated fixes had no effect.)

    YMMV

    HTH

  119. Hey all – For anyone reading this blog post and comments in the future, there is a command line method of updating ACL permissions listed above that has helped some people who contacted me with similar issues, but the command line has a typo so I wanted to correct it here.  The tool is called CACLS (and not calcs).  Here is example syntax to fix the ACLs for %windir%assembly:

    cacls %windir%assembly /T /E /P BUILTINAdministrators:F

  120. ozerdavid says:

    Many thanks. The removal tool solved a very longstanding problem of being unable to install security update for .Net Framework 1.1.

    Interestingly, the tool claimed to have failed. And Microsoft Update was not showing me .Net Framework 1.1 as an option. So the tool must have left something behind. But installing .Net framework manually, then its SP1 allowed Microsoft Update to show me the security update to 1.1SP1, which installed successfully (though did not actually require downloading, interestingly enough, indicating something else missed by the tool.

    But the removal tool is great, even so!! Many thanks again Mr Stebner…

  121. Hi Ozerdavid – I’m glad to hear that the cleanup tool helped in this scenario.  I’m curious about why it reported failure though.  If you get a chance, could you zip and send me the log files from the tool?  They are named %temp%cleanup* and you can send them to Aaron.Stebner (at) microsoft (dot) com.

  122. Manu123 says:

    While installing .NET framework 2.0 on Win2000 SP4 the following error appears.

    β€œ.NET framework as not successfully installed. Installation will be aborted”.

    Can you please help me in this matter?

  123. Hi Manu123 – Can you please zip and send me the verbose log from this failure so I can try to take a look?  They are named %temp%dd_netfx*, and you can send them to me at Aaron.Stebner (at) microsoft (dot) com.

  124. spock says:

    omg thank you thank you i have them all back know i had a dicons of a time installing them before i got this tool. what a briliant man you are i thank you from the botom of my heart. know can you tell me how do i remove your removel tool do i just delete it. thanks tony.

  125. Hi Spock – I’m glad to hear that the cleanup tool was useful for you.  This tool does not have an installer – it is just a zip file with the program inside of it.  Therefore, you only need to delete the file to remove it from your system.  There is not any uninstall program needed for this tool.

  126. MSDN Archive says:

    Saved! Damned security update for .Net FW 1.1 sp1 wouldn’t install, without which I couldn’t VPN into work! I couldn’t remove 1.1 through the control panel; thankfully your tool allowed me to rip it out and I’m up and running again. Cheers, John.

  127. For the last week or so, my machine has been regularly trying to install the MS07-040 security bulletin

  128. Mikey3 says:

    I tried to use your cleanup tool on my Win98SE system to remove any traces left from uninstall of .NET 1.0 and 1.1. The tool wouldn’t work. It gave error message:

    Error Starting Program

    The CLEAN.EXE file is linked to missing SHELL32.DLL:SHGetFolderPathW

    I tried running the program from the Windows Temp folder and Windows System folder where Shell32.dll is located, but still won’t work. Any thoughts on what’s wrong? Thanks.

  129. Hi Mikey3 – This error means that the function ShGetFolderPath doesn’t exist in the file shell32.dll on your system.  The documentation for that function says that it requires at least version 5.0 of shell32.dll.  I have written the code to delay load that DLL so that if a lower version were present, it should not cause any problems.  However, there might be a bug in that code somewhere.  Can you check on your system and see what version you have of shell32.dll on your system?  Also, would it be possible for you to contact me at Aaron.Stebner (at) microsoft (dot) com so I could try to send you a private build to test out some options for fixing this issue?  I haven’t been able to find a system that I can reproduce this issue on so far.

  130. Hi Mikey3 – I looked at the code for the cleanup tool a bit more and I found an issue that I introduced in the latest version that I posted to my file server that could explain the behavior you’re seeing.  Can you please try the updated version I just uploaded to http://astebner.sts.winisp.net/Tools/dotnetfx_cleanup_tool.zip and see if that fixes this issue?  Please let me know how it goes for you.

  131. Mikey3 says:

    The new cleanup tool ran successfully, but also included an error message at the beginning of the log:

    ****ERROR**** GetProcAddress failed for ‘SHGetFolderPath’ with error code 127 – The specified procedure could not be found.

    The shell32.dll is version 4.72.3812.600, and from FileSnoop it doesn’t have the Export function "SHGetFolderPathW". Does the lack of that function affect any cleanup routines in your cleanup tool? Would anything be left on the PC because of it? I’m not planning to reinstall .NET Framework on this PC again because Microsoft doesn’t offer any patches for it on Win98SE anymore – one less security problem to worry about. So, I can’t tell you if a reinstall would work out well or not.

  132. Hi Mikey3 – That error is expected if you have a version of shell32.dll less than 5.0.0.0.  The cleanup tool tries to use shell32.dll to locate the Program Files directory on your computer, and if it fails to find the function that it needs, it will look up the location in the registry as a back-up.  So, even with that error, the tool would have worked fine for you.

  133. DaveMidgley says:

    Hi Aaron. First let me add my thanks for this tool. I was in a hopeless mess trying to uninstall .NET to get rid of the dreadful 982366 upgrade problem. Your tool seems to have stopped the latter, and very nearly tidied up my installation. I just have one question – I still have Microsoft .NET Framework 1.1 Hotfix (KB886903) showing in Add Or Remove Programs. It will not uninstall ("The upgrade patch cannot be installed because the program to be upgraded may be missing . . ."), and it does not show up in Windows Install Cleanup. I really don’t need .NET 1.1 at all any more, and I’d like to stop going round the endless install-uninstall loop and just get .NET2 installed and get on with my life, but it would be nice to get everything tidy and get this oddball hotfix out of the AORP list. Any suggestions?

  134. Hi DaveMidgley – I’m glad that the cleanup tool was helpful for you.  It sounds like there are a couple of additional registry entries left behind on your system that cause the KB886903 item to appear in Add/Remove Programs even though it has already been uninstalled.  You can go and manually delete those – they will be located under HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstall.

    Also, if you don’t mind, could you please report back the exact names of the keys/values you had to remove so that I can update the cleanup tool to remove those in the future as well?

  135. DaveMidgley says:

    I removed HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstallM886903

    this referenced a file C:WINDOWSMicrosoft.NETFrameworkv1.1.4322UpdatesM886903M886903Uninstall.msp which also existed so I deleted the file and folder as well. That seems to have done the trick. Thanks. Dave.

  136. Hi DaveMidgley – Thank you for letting me know about this registry value and these files.  The next time I update the cleanup tool, I will add steps to the .NET Framework 1.1 cleanup step to remove this information in addition to the other steps it already does.

  137. tarmade says:

    i have a problem while installing assemblies. It seems like my computer could not locate the file. But when i go into the folder, the file IS there. Please help with this.

    Error message: Error 25015:Failed to install assembly ‘C:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll’because of system error:The system cannot find the path specified

    Things i have tried out:

    Running windows installer cleanup tool

    Running dotnetfx_cleanup_tool

  138. Hi Tarmade – I’d suggest trying the MsConfig tool described at http://blogs.msdn.com/astebner/archive/2006/11/25/disabling-services-with-msconfig-to-work-around-setup-failures.aspx to see if that helps resolve this issue.  Hopefully this will help.

  139. tarmade says:

    The problem still exist. I got this problem when i uninstall .net framework after it make some programs have startup errors. This problem only occurs when i tried to reinstall it.

  140. Hi Tarmade – I’m sorry you’re still running into this issue.  It might help to try the steps listed at http://blogs.msdn.com/astebner/archive/2006/09/04/solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions.aspx.

    If that doesn’t work either, I think your best bet will be to contact Microsoft Technical Support for more detailed troubleshooting assistance.  You are entitled to a free support case for setup-related issues such as this, and you can find their contact information at http://support.microsoft.com.

    I’m sorry I haven’t been able to be more helpful in this scenario.

  141. tonyguitar says:

    Thank You.

    The multi-page results log last line  suggested  the clean-up tool had failed..

    Yet in my view, it seems  to  have helped me clear  off  Net.Framework 1.1  [not showing  in  the  Add&Remove programs list]

    The  yellow MS caution crst is gone  too!  That  was  a reminder  that Kb928366 ..

    [Fatal execution error 90X7925de14

    And  KB928367..

    process id = 0X3dc (988)  1.0 PK3 = 0X184 (388)

    Were both always outstanding  security updates  that  could  not  be loaded.

    The cleanup tool  did knock  out  MS Defender  but I removed it and installed a fresh Defender.

    When I rebooted  after  cleanup, only the big gold maple leaf backdrop was on the display… for  a loooong time  while the processor  was busy at full tilt.

    No desktop icons at all!  I  could see programs were loading in the lower tray though.

    After a very  long  a  nerveous wait. I hit {Start} and put  the Compaq in [Standby].  

    Some  minutes  and I moved  the  mouse  to start up  and  sign in  and  to  my  relief  the  whole  screen  load  of  icons  were back.

    So  things  seem  to  be  running  normally  now.  There  may  be  a  few  more  surprises  waiting  when I start  different apps,  but  if  unloading  and  reloading fresh  does  the  trick,  then  all  is  well.  Thank you again. = TG

    PS  The internet icon was  missing  from  the tray… but  that  returned upon *Wake-up*

    Using 2 browsers..MS Word.. Paint..  You Tube all running well.

  142. adambaum says:

    HI Aaron, I ran your tool on a W2K3 SP1 server and it failed to remove .net 1.1.  I had to use your tool because it would not show up in Add/Remove programs, nor can I install updates to it.  Your tool says it is deleting a number of reg keys and files, but it leaves the c:WINDOWSMicrosoft.NETFrameworkv1.1.4322 path/files in tact.  Further review of the log shows a line saying:

    "Not adding product ‘.NET Framework 1.1’ because the OS condition does not match".

    Any ideas?

    adam

  143. Hi Adambaum – As described at the top of this blog post, the .NET Framework cleanup tool will not allow you to remove any version of the .NET Framework that is installed as a part of the OS.  The .NET Framework 1.1 is an OS component on Windows Server 2003, so that is why you are seeing this behavior.

    If you need to repair the .NET Framework 1.1 on Windows Server 2003, you can try steps like the ones at http://blogs.msdn.com/astebner/archive/2005/06/21/431385.aspx.

    Hopefully this helps.

  144. snouhtoau says:

    I’m running Windows XP pro SP2 and I get the following error when I try to install .net 2.0

    Help I have tried every single fix listed on this site and every place I could find on the internet.  

    error 25015.Failed to install assembly’C:WindowsMicrosoft.NETFrameworkv2.050727System.Enterprise.Services.dll’ because of system error: The system cannot find the path specified.

    Thanks Robert

  145. Hi Snouhtoau – In many cases where I’ve seen this error message in the past, the workaround at http://blogs.msdn.com/astebner/archive/2006/11/25/disabling-services-with-msconfig-to-work-around-setup-failures.aspx has helped.  I’d suggest trying that if you haven’t already.

    If that doesn’t help, and if running the cleanup tool listed at the top of this blog post also doesn’t help, then I’d suggest posting a question on the MSDN Forums at http://forums.microsoft.com to see if someone there can help suggest any other workarounds.

  146. pravesh says:

    Please help.

    I tried using the tool and have uninstalled the tool. Can’t confirm that but the tool say so.

    Then I ran the Windows Update which highlights to install .Net 1.1, 2.0 and 3 versions to be installed. When I tried installing the .Net 1.1 version, after a while error came Unable to install the frmaework.

    I tried downloading and installing the .Net 1.1 framwork, I got 1935 error.

    please help

    regards

    P

  147. Hi Pravesh – I’m sorry for the hassle this issue is causing for you.  You can use the steps listed at http://blogs.msdn.com/astebner/archive/2005/03/29/403575.aspx to make the .NET Framework 1.1 setup create a verbose log.  Then you can zip and send me the log at Aaron.Stebner (at) microsoft (dot) com and I can try to take a look and see if I can figure anything out about the root cause of this 1935 error.

  148. u487146 says:

    Removal tool worked like a charm. Was able to Instal .net 2.0 no errors! Thanks

  149. prophet001 says:

    Dude, are you kidding me. This thing is amazing. I have been trying to fix this corrupted .NET installation for too long now. Uninstall software didn’t work. Repair didn’t work. Uninstaller didn’t work. Reinstall didn’t work. This little tool did the trick. Thank you very much and Merry Christmas πŸ™‚

    Preston

  150. EricT says:

    CLR Error: 8007000b

  151. cnsrvative says:

    Have experienced this error on a Win XP Pro box.  Have used the Cleanup tool with no results.  I am going to go through the procedures you mentioned on http://blogs.msdn.com/astebner/archive/2005/04/16/408856.aspx but was wondering if you had specific success stories concerning THIS error with THIS file.  I had not seen any in going through this forum…

    Also – you say that we are allowed a free support call for this kind of issue – yet there is nowehere on the support site that I can find anything dealing with .NET Framework installations or .NET FW 2.0, and the only contact options are pay per use.  

    Thanks!

    S

  152. Hi Cnsrvative – Do you have the full text of the error message that you’re running into in this scenario?  Error 25015 is a catch-all for any type of error that the installer doesn’t specifically recognize (in coding terms, it is the default case at the end of a big switch statement), so there are a lot of possible causes.  Usually, error code 25015 will be followed by some more specific information about the cause of the error.

    The name of the file being installed doesn’t usually help narrow down the cause, but since it mentions System.EnterpriseServices.dll in this case, you may want to see if either of these workarounds helps for you:

    http://blogs.msdn.com/astebner/archive/2006/01/08/510677.aspx

    http://blogs.msdn.com/astebner/archive/2006/11/25/disabling-services-with-msconfig-to-work-around-setup-failures.aspx

    If you’ve already run the cleanup tool, there’s no need to also try the steps in that other blog post.  Those steps are the same as the ones run behind the scenes by the cleanup tool.

    Regarding the support question, my understanding is that you can use the Developer Tools support option like you would for Visual Studio, and that installation issues do not require payment.  I’m not sure if there have been any policy changes since I heard about that though.

    Hopefully this helps.

  153. isk says:

    You should talk to Intuit about this fix.  I’ll bet I’m not the only one who couldn’t get TurboTax to run because of a corrupted and unremovable .NET Framework – until I found your amazing Cleanup Tool.

    Thanks very much.

    isk

  154. Tremel says:

    This tool has just saved me from going out of my mind.  I tried to install SP3 for Framework 2.0 and it failed, when I tried to delete it from my system I couldn’t, when I tried to re-install Framework 2.00 kept getting the same error message.  I got no sense at all fro, Mircrosoft Help & Support. Then I found this tool, and everything fell into place.

    Thank you very much for your expertise.

    Bill

  155. gmayer0 says:

    thank you i have spent HOURS working on this and now it finally working. i am forever in your debt!

  156. David Nygaard says:

    Hi Aaron!

    I get the following error message:

    "The DeleteKeyExW could not be located in the dynamic link library ADVAPI32.DLL."

    My system is Windows XP SP2.

    Version of ADVAPI32.DLL is

    5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

    David N

  157. Hi David – The version of the cleanup tool that I posted yesterday contained a fix that inadvertantly caused this error on some operating systems.  I’ll be posting a fix shortly.  I’m sorry for the inconvenience.

  158. Hi David – An updated version of the cleanup tool that fixes this error is now available at http://astebner.sts.winisp.net/Tools/dotnetfx_cleanup_tool.zip.  I’m sorry for the inconvenience that this issue caused for you.

  159. John Dykstra says:

    Thanks for providing the cleanup tool. It worked for me after all else failed. I needed to get my .NET in order so that Turbo Tax would be happy and I could do my taxes on time. I’m going to add my experience and your link in my tech blog.

  160. Nashwan says:

    I just joind now the blog and register an account here only to say you Thank you πŸ™‚

    Best Regards

  161. danhinz says:

    Net 2.0 runs fine, SP1 install bombs out and kills 2.0.  Can’t uninstall, can’t reinstall, donetframework fix won’t work either.  App is dead πŸ™   Your tool fixed me right up without as much as a hiccup.  Thanks a million.  Can’t believe I joined MSDN just to say THANK YOU!

  162. alanbret says:

    Thank You! Thank You! Thank You!

    The path that has led to this point is unbelievable.  All I wanted to do was update the video drivers on my ATI 8500DV card on my Win2K box. The boxed CDROM drivers installed fine, but the updated drivers bombed, complaining about missing mscoree.dll. Of course it was missing, I had never knowingly put dotnet on my machine (nor did I want to!). So I got a copy of 1.1, but the installation failed repeatedly with "Microsoft .NET Framework (English) v1.0.3705 — Error 1904.Module C:WINNTsystem32mscoree.dll failed to register.  HRESULT -2146232576"

    Anyway, I was about to give up and re-format my drive (and spend a week or more putting everything back), when I came across your blog.

    IT WORKS!  Thanks again.  -Alan (a reluctant and resentful dotnet user)

  163. Beemf says:

    Helo all,

    i got big problem. During migration of servers i have uninstall .net framwork 3 sp1 from server. Uninstall was successfull.

    Now i need to install some application which need .net framework 3 but i cant install it. If i try to install verson 3 it said that there is already installed newer version and if i try with 3 sp1 i get error on the begining of the installation. Even 3.5 doesnt help.

    I cant uninstall or install. In one word i am stuck and cant do anything.

    Try your tool and didnt help me. It clean system but cant install it. Is there any other way to tell system that it isnt install yet?

    One way i manage to install app is to install new .net framework 3.5 sp1 beta but that also upgrade version .net 2 with sp2. Can i get installation for only .net framework 3 sp2?

    Thanks for any comments or tips.

    Peter

  164. Hi Beemf – What OS is this happening on?  Is it Windows Server 2003, or Vista or Windows Server 2008?  Also, can you list the contents of the following registry value on your system so I can try to narrow this down further?

    HKEY_LOCAL_MACHINESoftwareMicrosoftNET Framework SetupNDPv3.0

  165. vaximily says:

    I have tried EVERYTHING to be able to Install .NET Framework 2.0.  Uninstall / reinstall, clean out all versions of .NET, etc etc etc you get the idea.

    I am still getting the error System.EnterpriseServices.dll can not be found when installing.

    I’ve checked the directory and before the install the file doesn’t exist.  During the install it creates the file, and after it fails and I hit finish it deletes it again.

    I disabled McAfee as well.  Any more ideas here?

    Please email me for faster communication.  I am in a corporate environment and even our IT people are stuck and I need this fixed ASAP.

  166. Hi Vaximily – I’m sorry for the hassles that this issue is causing for you.  It sounds like you’ve tried most of the steps that I know of for troubleshooting .NET Framework installation issues.  There are a couple of other things that are specific to issues with System.EnterpriseServices.dll that you may want to try as well:

    http://blogs.msdn.com/astebner/archive/2005/07/27/444085.aspx

    http://blogs.msdn.com/astebner/archive/2005/07/24/442747.aspx

    http://blogs.msdn.com/astebner/archive/2006/01/08/510677.aspx

    Also, if you haven’t already tried it, you may want to try disabling services with MSConfig as well using the steps at http://blogs.msdn.com/astebner/archive/2006/11/25/disabling-services-with-msconfig-to-work-around-setup-failures.aspx.

    If none of the above work, then I think you will need to contact Microsoft Technical Support for more in-depth troubleshooting assistance.  There is contact information at http://support.microsoft.com and you should be entitled to a free support case for setup-related issues such as this.

    Hopefully this helps.

  167. vaximily says:

    Unfortunately after completing each of the steps mentioned, still no luck.

    Here is the EXACT error message>>>>

    Error 25015. Failed to install Assembly ‘C:WindowsMicrosoft.NETFrameworkv2.0.50727System.EnterpriseServices.dll’ because of the system error: The system cannot find the path specified.

    Any more help before I throw this thing in a box and send it back to Dell?

  168. Hi Vaximily – In the past, I’ve seen cases where this has been caused by a virus on the system and by programs like Windows Defender being too aggressive in what they are protecting.  You may want to check and see if you have Windows Defender running in the background in addition to McAfee just in case.

    If that doesn’t help, then I don’t know of any additional suggestions to try.  However, before you return your computer, I would strongly suggest contacting Microsoft Technical Support as I suggested previously.  They should be able to help you debug this further directly on your system and will hopefully help narrow down the cause and help you fix this.  They have worked on several cases in the past that resulted in this same error message that I am aware of and have been able to successfully fix all of them so far.  The hard part here is that there are a lot of possible root causes for this type of error and it typically takes some direct debugging to walk through some of the diagnostics.

    I’m very sorry for the hassle that this is causing for you.

  169. vaximily says:

    Do you know the typical turn around time for something like that would be?  My company modifies all sorts of security setings to lock down our systems pretty heavily, so at this point it seems easier to just have them send me a new laptop and I’ll send this one back to them so they can format it or return it to Dell.

    I don’t think there’s a ‘virus’ as our network is locked down pretty solidly — unless you count their monitoring junkware as a virus!! πŸ™‚

  170. Hi Vaximily – The typical turnaround time is a day or two.  If you’d like, you can contact me via email and I can help you get a case created – Aaron.Stebner (at) microsoft (dot) com.  If your company can easily give you a new laptop and reformat the current one, it may not be worth that trouble though.  Let me know what you’d prefer to do.

  171. Beemf says:

    Hello again. Sorry for my late replay, been out of town.

    Astabner i check registry and all i have is folder HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv2.0.50727, dont have v3.0.

    Also this is windows server 2003 r2 sp2 x64.

  172. Hi Beemf – Since you’re running a 64-bit OS, could you also check and see if you have a v3.0 key at HKEY_LOCAL_MACHINEWOW6432NodeSOFTWAREMicrosoftNET Framework SetupNDPv3.0?

    If you’re getting an error saying a later version of the .NET Framework 3.0 is already installed, that typically means there is something incorrect in the registry somewhere.

  173. Beemf says:

    Hi,

    I check under LOCAL_MACHINESOFTWAREWOW6432NodeMicrosoftNET Framework SetupNDPv3.0 and v3.0 was there. I just delete v3.0 folder and the installation of .net framework 3 sp1 was successful.

    Is that ok? Just delete all content under v3. I was doing that on copy of virtual server and dont want to damage production server.

    Thanks for all the help Astebner.

  174. Hi Beemf – .NET Framework 3.0 and 3.5 setup use registry values in locations like that to determine if a newer version of the product is already on the system, so it is probably OK to remove those values in order to unblock installation if you are getting that error and you are sure you don’t already have a newer version installed.

    Just to be sure though, can you list exactly what you have in your registry at that location so I can take a quick look?

  175. D_Adams says:

    Hi Arron,

    I just wanted to say that your tool has saved me lots of time and that your efforts are greatly appreciated. Great work and thanks!

  176. jtannercc33914 says:

    Thanks for the cleanup tool.  I tried everything including M/S (knowing that would be a waste – but I was desperate).  I couldn’t get some updated graphic software to work right and knew it was a .Net problem but until I used your cleanup tool I was stumped.  Thanks again.

  177. Davegrohl says:

    Oh dear me, I think ive messed up using this thing.

    I couldnt install framework 3.5, so i used your tool and wiped all framework installation of my pc.

    Since im on vista premium 64x its not so happy about not having framework 3.0 installed.

    The big problem is when i try to install framework 3.0, it gives me an error saying I need to "activate or deactivate windows-functions" in the controlpanel to install or configure microsoft.net framework 3.0 x 64. (basically translated from danish to english)

    The real problem is that there doesnt seem to be anything to activate or deactivate in  "windows-functions" under programms and functions, where you are supposed to be able to turn on and off windows-functions such as allowing the framework 3.0 x 64 to be installed/configured :S

    If you are unsure what menu im talking about, here is a screen: http://img.photobucket.com/albums/v365/RN1807/problemo.jpg

  178. Hi Davegrohl – The .NET Framework 2.0 and 3.0 are installed as OS components on Windows Vista, so the .NET Framework cleanup tool on my blog will not even attempt to remove those.  Normally, the .NET Framework 3.0 will appear in the Windows Features control panel along with other OS components, and it will allow you to activate or deactivate it.

    However, in your case, you don’t have anything listed in that dialog.  It sounds to me like there is some kind of bug in the OS on your system that is preventing it from listing the OS components you have installed.  I’m not sure how your system got into that state or how to resolve this type of issue.

    I did a web search and there appear to be quite a few people who have run into this though.  Here are a couple of links that might help:

    http://www.winvistaclub.com/t22.html

    http://support.microsoft.com/kb/931712

    http://blogs.msdn.com/astebner/archive/2008/07/28/8786504.aspx

    If none of these help, you may need to try to repair/re-install Windows Vista on your system.

  179. sagar2007 says:

    thanks a lot bro….! awesome tool..

  180. MZFoto says:

    Aaron hi, I got a problem 0x643 while installing the .NET 3.5 SP1 via Automatic Updates. I went through all the loops and got here. After running your tool several times I was not able to install .net 1 sp3 and .net 1.1 sp1, but all the other .net packages excluding 3.5 sp1. I saw your other article about 1603, but I guess I need to clear this problem first. I am running XP Pro SP3.

      I think all my problems started after I cloned my old hard drive to a new one, if that is any help.

      Any help will be greatly appreciated! TIA!

  181. Hi MZFoto – Can you please zip and upload your .NET Framework 3.5 SP1 setup log files to a file server and then reply back here with a link so I can take a look?  You can find a list of the log files created by .NET 3.5 SP1 setup in the blog post at http://blogs.msdn.com/astebner/archive/2008/04/30/8445569.aspx.

  182. kclewis says:

    Aaron, hi.  I am trying to install framework 3.0 and I get an error with the following signature:

    EventType : clr20r3     P1 : servicemodelreg.exe     P2 : 3.0.4506.30    

    P3 : 4545a225     P4 : servicemodelreg     P5 : 3.0.0.0     P6 : 4545a225    

    P7 : 2b     P8 : 1e     P9 : system.typeloadexception    

    I also get an error code of 0xe0434f4d.  log files are available <a href="http://rapidshare.com/files/200291194/MS_.Net_error.zip">here</A&gt;

  183. kclewis says:

    Aaron, I neglected to mention that I am running XP SP3 and I recently did a repair installation of Windows and had .NET framework issues afterward(the computer said they weren’t installed, installation said they were). I ran your tool and am now in the process of reinstalling.

    I appreciate any help,

    Keith

  184. Hi Kclewis – The System.TypeLoadException that you are encountering typically means that there are some old .NET Framework 3.0 bits left behind somewhere on your system that are interfering with .NET Framework 3.0 setup.  I’d suggest trying to use the steps listed at http://blogs.msdn.com/astebner/archive/2008/03/07/8108332.aspx to remove all versions of the .NET Framework from your system, then proceed to install the .NET Framework 3.5 SP1 (this will install 2.0 SP2 and 3.0 SP2 for you behind the scenes).

  185. vvkalkundri says:

    Hi ,

    I have to perform testing of installing and uinstalling the software repeated on XP64 os. As a part of Install and Uninstall, i have to repeatedly install.net and uninstall the .net. I am using clean up utility tool for the same.

        I have seen that After performing uninstallation of .net3.5 and .net3.0  for some number of times the the tool gets hung or goes into infinite loop.

     I have seen that this is because there is a HOT fix from Microsoft that cannot be uninstalled.The Hot Fix no is :KB953595.

  186. Hi Vvkalkundri – First of all, the cleanup tool is not designed as a replacement for the standard .NET Framework uninstall process.  I would suggest automating the standard uninstall for your test scenarios so you will more closely match what a customer will actually do on their system.  I have posted other items on my blog about how to automate the install and uninstall of various versions of the .NET Framework – you should be able to search my blog archive to find them.

    That being said, I don’t know of any reason why the cleanup tool would hang.  Do you have log files from the cleanup tool when it is hanging that you could post on a file server so I can take a look at?

  187. soultmich says:

    I have windows vista installed on my laptop ..But the first time windows update tried to install some new updates it said something about an error.. everyday it tries to install the new updates that have to do with the net framework and it says that I have to go to the control panel and unistall the net framework and then activate or disactivate some windows’ functions and try to install the framework again..

    I have tried almost everything but the probleme  doesn’t go away..

    can you tell me a way to fix it ??

    I asked a computer technician and he told me that we have to unistall windows nad install it from the beginning.. Isn’t there another way???

  188. Hi Soultmich – I’m sorry for the hassles that this issue is causing for you.  I’d first suggest trying to use the steps listed at http://blogs.msdn.com/astebner/archive/2009/10/23/9912209.aspx to see if they will help resolve this .NET Framework update installation problem.

    If that doesn’t help, please use the tool described at http://blogs.msdn.com/astebner/archive/2007/11/21/6458047.aspx to gather your .NET Framework setup log files, then upload them to a file server of your choice (such as http://skydrive.live.com), then reply back here with a link that I can use to download the logs so I can take a further look and see if I can figure anything out about what is causing this problem on your system.

  189. happyharrell says:

    I tried the cleanup tool, unfortunately I’m still getting an error code.  The problem appears to be an empty folder that is restricted on my computer.  Funny thing is, I’ve never created a logon other than computer owner, so nothing should be restricted.  Is there any kind of work around to install .NET framework?

    Thanks, Steve

  190. Hi Happyharrell – I’m sorry for the hassles that this .NET Framework setup issue is causing for you.  What exact version of the .NET Framework are you trying to install, and what version of Windows is it on?  Could you please use the tool described at http://blogs.msdn.com/astebner/archive/2007/11/21/6458047.aspx to gather your .NET Framework setup log files, upload them to a file server of your choice (such as http://skydrive.live.com), then reply back here with a link that I can use to download the logs so I can take a further look and see if I can figure anything out about what is causing this problem on your system?

  191. Hoyt Daniel says:

    Great Tool!  Thank you so much!

  192. OGelite says:

    hello im using windows xp pro sp3 and used the tool but still no luck.Trying to install .net framework 3 but crashes after minute.

    copy of error report

    Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,12:30:02] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,12:30:07] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,12:46:33] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,12:46:37] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,13:18:13] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/27/10,13:18:13] VS Scenario: [2] Only x64 platforms are supported

    [07/27/10,13:18:13] VS Scenario: [2] *** End of Blocking Component List ***

    [07/27/10,13:18:49] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/27/10,13:19:19] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/27/10,13:19:19] VS Scenario: [2] Only x64 platforms are supported

    [07/27/10,13:19:19] VS Scenario: [2] *** End of Blocking Component List ***

    [07/27/10,13:19:30] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/27/10,13:20:35] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/27/10,13:20:35] VS Scenario: [2] Only x64 platforms are supported

    [07/27/10,13:20:35] VS Scenario: [2] *** End of Blocking Component List ***

    [07/27/10,13:20:36] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/27/10,13:21:06] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,13:21:11] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,13:23:15] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,13:23:18] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,13:35:35] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,13:35:38] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,13:37:39] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,13:37:44] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,14:13:45] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,14:13:49] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,14:23:34] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,14:23:37] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,15:07:17] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,15:07:20] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,15:08:06] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/27/10,15:08:06] VS Scenario: [2] Only x64 platforms are supported

    [07/27/10,15:08:06] VS Scenario: [2] *** End of Blocking Component List ***

    [07/27/10,15:08:18] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/27/10,15:23:31] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,15:23:35] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/27/10,17:06:37] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/27/10,17:06:41] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,01:20:15] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,01:20:20] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,01:21:27] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/29/10,01:21:27] VS Scenario: [2] Only x64 platforms are supported

    [07/29/10,01:21:27] VS Scenario: [2] *** End of Blocking Component List ***

    [07/29/10,01:21:45] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/29/10,01:43:48] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,01:43:59] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,01:47:53] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/29/10,01:47:53] VS Scenario: [2] Only x64 platforms are supported

    [07/29/10,01:47:53] VS Scenario: [2] *** End of Blocking Component List ***

    [07/29/10,01:47:56] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/29/10,02:18:28] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,02:19:23] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,02:22:36] VS Scenario: [2] *** Blocking Components exist and must be satisified before continuing to install ***

    [07/29/10,02:22:36] VS Scenario: [2] Only x64 platforms are supported

    [07/29/10,02:22:36] VS Scenario: [2] *** End of Blocking Component List ***

    [07/29/10,02:22:45] VS Scenario: [2] Failed to pass the Warnings/Blocks checks in CVSScenario::Start()

    [07/29/10,02:32:42] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,02:33:44] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,02:40:54] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,02:40:57] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,02:57:41] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,02:58:51] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,12:39:51] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,12:41:20] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,13:05:38] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603

    [07/29/10,13:06:36] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed.

    [07/29/10,13:06:36] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed.

    maybe can someone help

  193. Hi OGelite – I'd suggest trying to install the .NET Framework 3.5 SP1 instead of 3.0 in this scenario.  The .NET Framework 3.5 SP1 also installs the .NET Framework 2.0 SP2 and 3.0 SP2 for you behind the scenes, and it includes several setup fixes that can help solve this type of error.  You can find more details about how to troubleshoot this type of issue in the blog post at blogs.msdn.com/…/9204257.aspx as well.

  194. Heix says:

    Hello!

    During the installation of Net Framework 3.5 an error occures and i dunno what to do

    Error parsing C:WINDOWSMicrosoft.NETFrameworkv2.0.50727configmachine.config.Parser returned error 0xC00CE556.

    this is the error

    can someone help me`?

  195. Hi Heix – This error means that there is some invalid data in your machine.config file.  Usually, I suggest trying to uninstall the .NET Framework 3.5, then 3.0, then 2.0, then re-install the .NET Framework 3.5 SP1 to solve this type of error.

    Depending on what version of Windows you are using, you might not be able to uninstall the .NET Framework 3.0 or 2.0 though (because they come as a part of the OS on Windows Vista and higher).  If you are on one of those OS's, you can try to rename your existing copy of machine.config, then copy the file machine.config.default over the top of machine.config to try to eliminate the invalid data from machine.config.

  196. Kregg says:

    I ran the cleanup tool and attempted to install the first .NET Framework listed in your readme.txt.  It came back with an error message stating that is was incompatible with the previously installed version.  Did the cleanup tool miss something?

  197. Hi Kregg – This incompatible version error can occur if you try to install a version of the .NET Framework that is already installed as a part of your OS.  What exact version of the .NET Framework did you try to install when you saw this error, and what version of Windows did you try to install it on?

  198. Ray says:

    Aaron, I don't see a link to run your removal tool.  Please repost the link.  Thanks!!!!

  199. Hi Ray – The .NET Framework Cleanup Tool User's Guide at blogs.msdn.com/…/8904493.aspx contains download links for this tool. Can you please try the links listed there and let me know if you have any trouble downloading the tool?

  200. santhosh says:

    plz help me to uninstall .netframework 2

  201. Hi Santhosh – I'd suggest using the steps listed at blogs.msdn.com/…/8108332.aspx to remove the .NET Framework.

    One note too – the .NET Framework 2.0 comes pre-installed as a part of Windows on Windows Vista, Windows Server 2008 and Windows 7.  You will not be able to uninstall the .NET Framework 2.0 on those versions of Windows.

  202. Bruce says:

    I need to install 3.5 and keep getting a loading error any help you can give would be helpful

  203. Hi Bruce – What is the exact error message that you are getting, and what version of Windows are you running?

  204. thegreek says:

    my friend you re fantastic.i was trying for many hours to solve the problem with microsoft's utilities but the result was zero.only 5 minutes with your program and the problem is solved.many thanks.very good program

  205. Uriel says:

    Hey im getting that error when i try to reinstall de net framework 2.0 {LoadLibrariShim().)Because i had to unistall it to solve the netfx2.msi problem because i red that using your tool and then reinstalling it, the problem was going to be solved, but now i have 2 errors, so …

    What can i do? Do i have to unistall the 1.0 and the 1.1?

  206. Hi Uriel – I'd suggest using the steps + the cleanup tool described at blogs.msdn.com/…/8108332.aspx to fully remove the .NET Framework from your computer, then re-install the .NET Framework 3.5 SP1 (which will also install the .NET Framework 2.0 SP2 and 3.0 SP2 behind the scenes).  You can optionally install the .NET Framework 1.0 and/or 1.1 afterwards if you have applications that need it.

  207. Uriel says:

    Now is even worse πŸ™ every time i try to install the .Net Framewirk it says that there is an error and the installer has to been closed πŸ™

  208. Hi Uriel – What is the exact error message that you are seeing in this scenario?  Can you upload a screenshot somewhere so I can take a look?  Also, could you use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your .NET Framework setup log files, then upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), then reply back here and provide a link I can use to download your log files and take a closer look?

  209. Uriel says:

    Here it is !

    http://www.megaupload.com [ The file you requested ( I think this is the file "%temp%vslogs.cab" ) ]

    http://www.megaupload.com ( Info about my problem )

  210. Hi Uriel – This log shows the same error during .NET Framework 3.5 SP1 setup that you were originally seeing:

    Error 25007.Error al inicializar la fusiΓ³n. El programa de instalaciΓ³n no pudo cargar la fusiΓ³n con LoadLibraryShim(). Error: 0x80131700

    Normally, running the cleanup tool will clear up that error.  You might need to reboot after running the cleanup tool for all of the changes to take effect.

    If that doesn't help, can you please try to install the .NET Framework 4 first and see if that makes a difference?

  211. Uriel says:

    The .Net Framework 4.0 did install succesfully but the that didn`t make the difference, the error is still there πŸ™

  212. forky says:

    unhandled access violation reading 0x0000x exception at 60c068h. netframework 2.0 mising library

    this error came when i tried to run a software<facesnoop 2> so i cchanged my windows to XP and install netframe work 2.0 bt it didnt work…it didint work in xp,vista,windows7..can u help?/

    adam sharif rasheed

    maldives

    regards….

  213. Hi Uriel – I'm sorry, but I'm not sure what else to suggest.  All of the cases I've run into in the past of error code 0x800131700 have been resolved by fully uninstalling the .NET Framework using the normal uninstall process + the cleanup tool and then re-installing.  You may want to try to contact Microsoft technical support for more in-depth troubleshooting assistance.  You can find their contact information at http://support.microsoft.com.

  214. Hi Forky – This sounds like a possible issue with this application as opposed to an issue with the .NET Framework.  I'd suggest contacting the manufacturer of this application to see if they have any troubleshooting suggestions that you can try in this scenario.

  215. Alfian says:

    Hi Aaron, I've used your removal tool to remove .net framework 2.0. But, when I want tore-install it again, I always got an error like this: "Error 25007.Error occurred while initializing fusion. Setup could not load fusion with LoadLibraryShim(). Error: The handle is invalid."

    How can I fix them?? (sorry if my english is bad)

  216. Hi Alfian – I'd suggest trying to temporarily disable your anti-virus and anti-malware software in case they are interfering with .NET Framework setup.  I'd also suggest trying the steps listed at blogs.msdn.com/…/disabling-services-with-msconfig-to-work-around-setup-failures.aspx.

  217. Josef says:

    Hi Aaron,

    System:

    Windows XP SP3 (german), .NET 2.0 SP2

    Preliminary:

    These days i bought a game which is not an egoshooter or any other popular one, so there's quite nothing to read about in the web – sales promotion aside.

    When trying to start nothing happens: no error messages, no entry in the event log, but a mage_0.log in the game directory. However, this file is empty! Researching the binary i found links to mage.exe which seems to be a built-in component. I suppose that this mage.exe is one from the .NET SDK's. The original french version of the game was developed in early 2008, so it's probably .NET 3.x. (The system requirements don't indicate any version of .NET.)

    Now, that's the point where the real nightmare begins:

    Facts:

    Installing .NET 3.5 SP1. Failed. Error message:

    "depcheck indicates Microsoft .NET Framework 3.0 SP2 [!] X86 is not installed."

    Installing .NET 3.0. Failed. Error message:

    "depcheck indicates Windows Communication Foundation is not installed."

    The message changes to

    "depcheck indicates Windows Presentation Foundation is not installed."

    after removing and re-installing .NET 2.0 without the SP2.

    It doesn't matter if i run the setups in standard or maintenance mode (with the obligate services only), or if i cleanded the system manually, with the CP software module or the .NET cleanup tool. The results are always the same.

    I need really help before getting completely crazy Thanks in advance…

  218. Josef says:

    Problems solved!

    A. NET Runtimes:

    After a deep sleep i got back some inspiration. So i tried the following steps:

    1. Starting in maintenance mode

    2. Unpacking dotnetfx3.exe.

    3. Manual installation of the packages WCF, XPS, WF by double clicking the

      *.msi files. (Because of dependencies i had to regard a certain order.

      I don't remember exactly, but if i remember well it had to be XPS, WF, WCS.)

    4. Installation of .NET 3.0 succeeded now!

    5. Installing .NET 3.5 SP1 still failed with the known error message:

      "depcheck indicates Microsoft .NET Framework 3.0 SP2 X86 is not installed."

    6. Unpacking dotnetfx35.exe (SP1 version).

      Manual installation of the netfx30a_x86.msi failed (needs setup.exe!).

      Manual installation of the components by double clicking the *.msp files.

    7. Installation of .NET 3.5 SP1 succeeded now!

    B. Game

    The game in dead needs NET 3.x. It's running fine now after step A. was finished.

    Perhaps this may help someone…

  219. Hi Josef – I'm glad that you were able to figure out a solution to this issue.  For anyone else reading this in the future, if you run into something similar, please use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your .NET Framework setup log files, then upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), then reply back here and provide a link I can use to download your log files and take a closer look.

  220. Josef says:

    Josef

    Small appendix to my solution:

    To be on the safe side i did reboot after steps 3., 4. and 6. (It's quite sure that the first and the last one are absolute necessary at least.)

  221. jeffstar2@aol.com says:

    Hello. For days now I have been trying to install .net framework 3.5. It all started when I tried to run and install a new porgram to my VPS windows server 2003 enterprise X64 edition sp2. When I tried to install the program I received a message stating .net framework 3.5 is needed.  Well, I thought no problem I'll go to microsoft and download the program.  This is when all my problems began.  I went to check to see what version of .net framework I had and it was 2.0 SP2.  I went to install 3.5 and it stopped and rolled back leaving 2.0 SP2 in its tracks, but no 3.5.  I went to add and remove 2.0 and then tried to load 3.5 again and the same things happened 2.0 reappeared, but no 3.5.  I then followed some of the steps and methods listed on this forum, other forums, and at the microsoft website.  Needless to say thing went from bad to worse.  I no longer can load any level of .net frameword and no version is available on the server.  I went from partial loading with an error due to UIAutomationCore.dll failure, and 'The windows Installer could not be accessed error 1603' and the now an error 1719 relating again to the windows installer.

    Any recommendations would be greatly appreciated. Thank you. Jeff

  222. jeffstar2@aol.com says:

    Here is the link to the vslogs.cab  skydrive.live.com/redir.aspx

    I hope it works and can be viewed properly.

    Thanks. Jeff

  223. Hi Jeffstar – I'm sorry for the hassles that this issue is causing for you.  The .NET Framework 2.0 SP2 installation is failing due to this error:

    MSI (s) (44:DC) [21:58:15:084]: Custom Action Server rejected – Wrong Context

    I'd suggest trying the workaround listed at blogs.msdn.com/…/10165211.aspx to solve this issue.

    The .NET Framework 3.0 SP2 installation is failing due to a different error:

    Error 1310. Error writing to file: c:WINDOWSSysWOW64UIAutomationCore.dll.  System error 0.  Verify that you have access to that directory.

    This type of error is usually caused by a file or directory permission problem on the computer.  The steps at blogs.msdn.com/…/solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions.aspx might help solve this problem.  Alternatively, you could try to manually update the permissions on the c:windowssyswow64 folder on your computer – you will need to make sure that the local system account and the Administrators group have full control over this folder in order for .NET Framework setup to succeed.

  224. anurag chaudhary says:

    thanks for ur program .net cleanup tool as iam trying to remove older version to check some graphic realated issue and every time window ask for msi package from which partcular version of .net installed and it is almost make mess for me to find that particular version ur program do in just 6 minutes and iam searching for that insatallation packages from last 6 hours on internet and i cant find them .but ur tool works

  225. Ferguson says:

    Hi.Ive had this "Code 643" error ever since i tried to install the .NET Framework. I know your program has helped countless amounts of people but unfortunately for me, i am not a skilled computer user. Well i read and clicked the link to the download of your program but i do not know which software or application to run it with.

              I would appreciate your help so much. Thank You!.

  226. Hi Ferguson – Are you getting code 643 when you try to install the .NET Framework?  If so, which version of the .NET Framework?  Would it be possible for you to use the tool described at blogs.msdn.com/…/6458047.aspx to collect all of your .NET Framework setup log files, then upload the file named %temp%vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), then reply back here and provide a link I can use to download your log files and take a closer look?

    To run the cleanup tool, all you need to do is save the zip file to your desktop, then open the zip file and run the .exe file named cleanup_tool.exe that is inside of the zip file by double-clicking on it.

  227. Ferguson says:

    Yeah.skydrive.live.com This is the the results after using the tool on blogs.msdn.com/…/6458047.aspx. Im not sure if i did it correctly but if you do encounter any problems, please let me know asap.

                       Thanks

  228. Ferguson says:

    Ugh.Didnt work. Tryin again x: skydrive.live.com

  229. Hi Ferguson – I see one log file named dd_clwireg.txt on your SkyDrive site, but I don't see the full vslogs.cab file that contains all of your setup log files.  Can you please upload that file as well?

  230. Andreas Caravella says:

    Hi Aaron, just wanted to thank you for all the effort you put in this tool and blog, awesome work. Thank you!

  231. BOB0011 says:

    Aaron

    You rock. I could not uninstall 2.0 and your tool did the trick. Everything now works great…Bob

  232. Joris says:

    Aaron! A little problem to solve.. i tried using your tool but two updates failed to disinstall. Now (i think) updates fail to install because they are still on the system. Updates are:

    KB960043

    KB963707

    Thanks in advance for the help!

  233. Hi Joris – I'd suggest using the tool and the steps listed at blogs.msdn.com/…/8108332.aspx to fully remove all versions of the .NET Framework from your computer, then re-install the .NET Framework 3.5 SP1 and try again to install these updates.  If they still report issues, you might need to reset your Windows Update components using the information at blogs.msdn.com/…/10207487.aspx.

    If the updates still fail to install after all of the above, then 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 reply back here and post a link that I can use to download your log files and take a closer look.

  234. lolek says:

    Dont work games like TEAM FORTRES 2 AND Call of duty 1,2,3,4,:::.

  235. Hi Lolek – Can you please provide more details about the problem you are having?  For example, do you have a .NET Framework installation issue that is preventing you from being able to play these games?

  236. mike.sabine@gmail.com says:

    Hello Aaron – Got a BSOD while trying to install driver software for Lexmark Pro905 inkject printer. The BSOD did not show any driver error. Prtr installation failed.  I copied down the STOP information. I did not send the info to MS as I thought no one would be looking at old XP BSOD data. There are apparently two WER files still on my computer.  I also thought this might be related to the fact that I have not been able to install the .Net Framework 1.1 Service Pack 1 Update. I looked at this link: support.microsoft.com/…/922377 a decided to try and fix the problem.  I first created a restore point and backed up the registry.  I tried following the steps for .Net Framework removal (Method 1) from the link above but could not complete it.  I got down to step 7 but could not remove the Microsoft Framework folder (apparently either not enough disk space or a clr.dll was in use). Method 2 suggests your tool.  I would like to try this but want to check to see what other additional problems I might encounter. The following list shows the currently installed programs and updates related to this .NET Framework issue:

    1. Microsoft .NET Framework 1.0 Hotfix (KB2572066)

    2. Microsoft .NET Framework 2.0 Service Pack 2 plus subs below it.

    3. Miscrosoft .NET Framework 3.0 Sercive Pack 2 + subs below it.

    4. Microsoft .NET Framework 3.5 SP1+ subs below it.

    5. Microsoft .NET Framework 4 Client Profile + six Security Updates for Microsoft .NET Framework 4 Client Profiles listing six different KB's.

    I have a feeling I am going to have to uninstall all of .NET Framework area and start over. I am running Windows XP Media Center edition on a Dell Inspiron 6400 (E1500).  Would you please provide your estimate on what I will have to do as well as any suggestions on what precautions and or other steps I should take to make the task(s) easier.  Thanks in advance.

  237. Hi Hawk747 – In this scenario, I'd suggest using the cleanup tool with the steps listed at blogs.msdn.com/…/8108332.aspx to fully remove the .NET Framework versions that are on your computer, then re-install them in the order described at blogs.msdn.com/…/10108400.aspx.

    Since you are running Windows XP Media Center Edition, you will already have the .NET Framework 1.0 installed as a part of your OS, and the cleanup tool will not remove it because it does not allow you to remove OS components.  So, in the reinstall steps, you can skip the .NET Framework 1.0.

  238. mike.sabine@gmail.com says:

    Aaron,

    Thank you for your help.  I still had to do a lot more reading but your explanations in this and other posts helped me understand what I needed to know to get the problem fixed.  One of the most helpful tools was the Netfx Setup Verifier.  The program along with readme file helped me understand what was supposed to be loaded and whether or not it was loaded correctly.

    Mike

  239. Chrissy says:

    I have used the clean-up tool. I tried to reinstall .net framework 2.0 and got this in the error log:

    [08/21/12,13:59:12] Microsoft .NET Framework 2.0a: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a. MSI returned error code 1603

    [08/21/12,14:02:09] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a is not installed.

    Can you help me fix this?

  240. Hi Chrissy – 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?

  241. Turner says:

    After running the cleanup tool several versions of .net framework are still shown in the programs list.  When I go to uninstall I get a message saying that this can't be done because the programs are not installed.  Upon attempting a reinstall the installation fails.  The versions are 3.5 and 1.1 sp1.  Has anyone reported this?

  242. Hi Turner – 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?

  243. MIKE LOWE says:

    do i need to uninstall all the old versions of .net framework because i have 5 different net framework files= 2.0 service pack 2,    3.0 service pack 2,      3.5 sp1,      4 client profile          and 4 extended

  244. mike lowe says:

    never mind i found the info already thanks tho

  245. Hi Mike Lowe – I'm glad you found the information you needed.  For others reading this blog post in the future, you can find more information about Mike's scenario at blogs.msdn.com/…/10219046.aspx.

  246. Daniel Perez says:

    Thank you very much for sharing this tool, I just used last night on windows 2003 server with .net 1.0, 2.0 and 2.0 SP1, none was able to uninstall and/or install. After running the tool I was able to install .net 3.5 SP1.

  247. John Clarke says:

    Hi Aaron,

          After running your removal tool, I was able to install a functioning version of Net Framework.

    Thanks,

    …. john

  248. ted says:

    McAfee flags your tool. What gives

  249. Hi Ted – I'm not sure why that would happen.  The files that I uploaded are clean.  Does McAfee have a mechanism to let you report false positives to them so they can update their signatures?

  250. Paul ing says:

    While installing Driver Support hit with error code 1606

    1. Hi Paul ing – Can you please try to use the steps listed at https://blogs.msdn.microsoft.com/astebner/2005/03/29/help-me-help-you-if-you-have-setup-bugs/ to create a verbose log file from this failing install and upload the logs to a file server such as http://onedrive.live.com? If so, I can download your logs and see if I can narrow down the root cause of that error any further.