Compartilhar via


How to manually cleanup a failed .NET Framework 2.0 install

In response to the blog article I posted last week where I provided a link to a .NET Framework manual cleanup tool, I got some questions about whether or not a comparable version is available for cleaning up the .NET Framework 2.0. I am currently working on a couple of small work items in the code for the tool to enable it to work with 2.0, but in the meantime I wanted to post some manual steps. I know there have been a lot of uninstall/reinstall issues because we have released an alpha, a beta and numerous Community Tech Preview (CTP) versions and not all of them will uninstall completely cleanly in order to allow a future beta version of 2.0 to install correctly.

The following steps will help resolve .NET Framework 2.0 installation failures/hangs in most cases. Before proceeding please note these important caveats:

  • These steps will only work for the .NET Framework 2.0 installed by dotnetfx.exe (the MSI-based setup). There is a version of .NET Framework 2.0 that is installed as part of the OS if you are running any pre-release builds of Windows codename Longhorn. You should not use these steps on Longhorn.
  • These steps will damage the .NET Framework 1.0 or 1.1 if you have either of these versions installed on your computer. This is because you are instructed to rename the file mscoree.dll that is shared by all versions of the .NET Framework. If you have 1.0 or 1.1 installed, you will need to immediately install a later build of .NET Framework 2.0 to update mscoree.dll or perform a repair of the .NET Framework 1.0 or 1.1. To repair .NET Framework 1.0 or 1.1, go to the Add or Remove Programs control panel, click on the link for support information, and then click on the Readme link.
  • If you are running Windows Server 2003, Windows XP Media Center Edition or Windows XP Tablet PC Edition, there is a version of the .NET Framework that ships as part of the OS. In those situations, you cannot repair by using the instructions in Add or Remove Programs under the readme link. In those scenarios it is strongly recommended that you immediately install .NET Framework 2.0 to provide an updated version of mscoree.dll. If that is not an option, you must repair your OS to fix the issue.

Steps to clean up a machine to fix a failed .NET Framework 2.0 installation:

  • Using Add or Remove Programs, locate any versions of the .NET Framework 1.2 or 2.0 and choose Remove to uninstall them

  • Using regedit, navigate to HKLM\Software\Microsoft\.NETFramework and delete any keys and values that have 1.2 or 2.0 in it, including keys/values that are in subkeys underneath .NETFramework.

  • Using regedit, navigate to the sub-hive HKLM\Software\Microsoft\.NETFramework\Policy and delete any key or value that has 1.2 or 2.0 in it. 

  • Using regedit, navigate to HKLM\Software\Microsoft\ASP.NET and delete any key or value that has 1.2 or 2.0 in it, including keys/values that are in subkeys underneath ASP.NET. 

  •  Right-click on My Computer and choose Manage. Expand Computer Management (Local), then Local Users and Groups, then click on the Users folder. In the right-hand pane, right-click on the ASPNET user account and choose Delete to remove it.

  •  Go to %windir%\assembly and delete anything with *1.2* or *2.0* in the folder name. Delete the GAC_32 and GAC_MSIL folders as well.

    You can not view the contents of %windir%\assembly in Windows Explorer when the .NET Framework is installed. In order to view the contents, you will need to set the following registry value and reopen Windows Explorer

    Key name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
    Value name: DisableCacheViewer
    Data type: REG_DWORD
    Value data: 1

    Note: You should remove the DisableCacheViewer value after you complete this step because this is only used for debugging purposes.

  • Go to %windir%\Microsoft.NET\Framework and delete any folders named v1.2.* or v2.0.* along with all of the files and subfolders they contain. You may get errors when trying to delete some of the files because they are in use. In most cases, rebooting the machine and trying again will work. If not, you can rename the files to be <filename>.old and then delete them after a future reboot.

  •  Rename %windir%\system32\mscoree.dll to mscoree.dll.old.

  •  After doing all of this, try to install the previously failing version of the .NET Framework 2.0.

If you have any trouble getting these steps to work correctly please let me know. Also stay tuned for a future post once I get the cleanup tool updated to work with .NET Framework 2.0 and post it for download.

Comments

  • Anonymous
    April 16, 2005
    Now that Visual Studio 2005 and .NET Framework 2.0 beta 2 is about to be available, I wanted to communicate...

  • Anonymous
    April 16, 2005
    Thank you for the walk through Aaron! If I come across any other problems I'll post them up here.

  • Anonymous
    April 17, 2005
    I know I'm a little late jumping on this particular bandwagon and posting a blog item about it, but just...

  • Anonymous
    April 17, 2005
    Hvis du, ligesom jeg,&amp;nbsp;har haft mange forskellige version af Visual Studio 2005 p&#229; din maskine over...

  • Anonymous
    April 18, 2005
    Hey all, I'm sorry for the delay posting this.&amp;nbsp; I've got a version of the cleanup tool that I wrote...

  • Anonymous
    May 10, 2005
    Worked just great,thanks for that. Next time I'll read the instructions...

  • Anonymous
    May 14, 2005
    When I install the vwd 2005 feb ctp, i clicked the" ixpvwd.exe" instead of ' setup.exe' ,

    but during i using it, some err happen ,so i reinstall it by clicking ixpvwd.exe.

    but now when i want to unstall it ,

    it said some pre version installed ,unstall them,

    How can i do it ?

    do you have some tool to remove all the beta 2 feb ctp ?

    Thanks !

  • Anonymous
    May 14, 2005
    my email : forwangjun@163.com
    help me !

  • Anonymous
    May 16, 2005
    I tried the manual uninstall on Windows Server 2003 and on a client's computer, but the new version still detects the previous version. I can't find any files or registry entries that could trigger this, and I get an error if I try to run the cleanup utility. If you have any suggestions, I would be thankful.
    J

  • Anonymous
    May 22, 2005
    Hi J Plumb - Can you please try the following steps and see if this will resolve the issue?

    1. Download the VS 2005 beta cleanup tool from http://go.microsoft.com/fwlink/?linkid=47065 and save it to your desktop

    2. Go to the Start menu, choose Run, type cmd and run vs2005_beta_cleanup_tool.exe /t:c:temp /c from the cmd prompt

    3. From the cmd prompt, run c:tempmsizap TP {71F8EFBF-09AF-418D-91F1-52707CDFA274}

    4. Now run c:tempcleanup.exe and when the UI lauches, choose to remove the VS 2005 beta again.

    5. After the cleanup completes, try to reinstall VS 2005 Beta 2 one more time.

  • Anonymous
    May 22, 2005
    Hi Wangjun - Can you please try the following steps and see if this will resolve the issue?

    1. Download the VS 2005 beta cleanup tool from http://go.microsoft.com/fwlink/?linkid=47065 and save it to your desktop

    2. Go to the Start menu, choose Run, type cmd and run vs2005_beta_cleanup_tool.exe /t:c:temp /c from the cmd prompt

    3. From the cmd prompt, run c:tempmsizap TP {F7491330-512C-469D-94F6-4828D2D0344E} to remove the VWD February 2005 CTP.

    4. Now run c:tempcleanup.exe and when the UI lauches, choose to remove the VS 2005 beta.

    5. After the cleanup completes, try to reinstall VS 2005 Beta 2 one more time.

  • Anonymous
    May 23, 2005
    Quick update on the steps I listed above in the 2 previous comments - I forgot that we removed msizap.exe from the VS 2005 beta version of the cleanup tool to make the download size smaller.

    You can find a copy of msizap.exe inside the version of the cleanup tool designed for .NET Framework 1.0 and 1.1 that is posted at http://astebner.sts.winisp.net/Tools/dotnetfx_cleanup_tool.zip.

    Hope this helps and sorry for any confusion...

  • Anonymous
    May 30, 2005
    Beta 2 common install issues and work around can be located at http://lab.msdn.microsoft.com/vs2005/get/vsbeta2installissues/default.aspx...

  • Anonymous
    May 30, 2005
    Beta 2 common install issues and work around can be located at http://lab.msdn.microsoft.com/vs2005/get/vsbeta2installissues/default.aspx...

  • Anonymous
    June 10, 2005
    The comment has been removed

  • Anonymous
    June 13, 2005
    The comment has been removed

  • Anonymous
    June 14, 2005
    Hi Ian,

    This log file is showing that Windows Installer thinks that you already have the .NET Framework 2.0 beta 2 installed. Can you try to run msiexec /x {7A1ADD0C-17F3-47B8-B033-A06E189C835D} to remove beta 2, and then try to run setup again and see if it works for you? If that doesn't work, please try the following:

    1. Download the version of the cleanup tool at http://astebner.sts.winisp.net/Tools/dotnetfx_cleanup_tool.zip

    2. Run cleanup_tool.exe /t:c:temp /c

    3. Go to c:temp and run msizap.exe TP {7A1ADD0C-17F3-47B8-B033-A06E189C835D}

    4. Try to run .NET Framework 2.0 beta 2 setup again

    Please let me know if this works for you....

  • Anonymous
    June 17, 2005
    Hi Aaron,
    Thanks for all your excellent advice. We've followed all of the steps you've outlined and still have not been able to successfully install, so I'm hoping you can give us some ideas.

    Our situation seems like it might be slightly different from others, but I'll do my best to outline what we're experiencing and if you have any questions or need more detail, please let me know:

    --Each time we attempt an install, it appears to run fine through these basic steps: Extract, EULA, Configuring Install, Write System Reg Entries, Copying New Files, Binding Executables, Write System Reg Values. At this point, the progress message changes to "Rolling Back. . . " and the detail says "Unregistering SystemEnterpriseServices.dll" and then throws a rather generic error--"An error occurred during setup.
    The following error occurred during setup: Installation Failed."

    --We are attempting to load the Beta 2.0 .NET Framework on a test machine that was built to mirror our production server as closely as possible, which has the .NET v1.2 installed. The Framework is being installed from dotnetfx.exe, and we are using Windows Installer 3.1

    --The issue has occurred consistently on our Win2K test server, although it installed fine on a similar machine running Win2K3. We first tried running the vs2005_beta_cleanup_tool.exe as recommended on the Microsoft MSDN Site, and then following your manual instructions in this post--neither of which changed the sypmtoms or outcome.

    I apologize for being so verbose, but I'm hoping there is some clue you'll see that we've overlooked. Please let me know if you have any suggestions or questions.

    Thanks!

    Steve

  • Anonymous
    June 17, 2005
    Hi Steve - could you please look in your %temp% directory for the most recent file named dd_netfx20msi*.txt and zip and send that file to me via email? That will help us figure out which part of setup is failing and causing the rollback to happen.

  • Anonymous
    July 12, 2005
    My install/uninstall is quite FUBARed. I tried the manual uninstall, and automated uninstall, the brute force uninstall. It will not uninstall. Before I tried any of the manual or brute force, i was getting error 2203.

    Any ideas?

    David

  • Anonymous
    July 12, 2005
    Hi David - could you please look in your %temp% directory for the most recent file named dd_netfx20msi*.txt and zip and send that file to me via email at aaronste (at) microsoft (dot) com? Error 2203 means "Database: [2]. Cannot open database file. System error [3]" but hopefully the log file will give me more context on what could be causing this error.

  • Anonymous
    July 20, 2005
    I am trying to install July CTP of VS 2005. It fails because .Net 2.0 Beta is install. All attempts to unistall .Net 2.0 Beta fail because netfx.msi file is missing. VS 2005 Cleanup utility fails because netfx.msi file is missing. The .Net Framework 2.0 Beta Cleanup tool completes without error but .Net 2.0 Beta is STILL installed after it runs and the system is rebooted. .Net 1.0 and 1.1 were removed but not 2.0 Beta. How do I unistall .Net 2.0 Beta?

  • Anonymous
    July 20, 2005
    Hi Don - can you please try to install the Windows Installer Cleanup Utility from http://support.microsoft.com/default.aspx?scid=kb;en-us;290301 and use that to locate and remove the .NET Framework 2.0 beta? I am working on a version of the cleanup tool that will work with VS 2005 beta 2 and I will fix the issue you are running into if the original MSI is missing as part of that release. In the meantime the Windows Installer Cleanup Utility should allow you to fix this bug.

  • Anonymous
    July 28, 2005
    The comment has been removed

  • Anonymous
    July 29, 2005
    I improperly uninstalled both .NET framework 2 and visual studio express C# I've deleted everything in sight related to it in the registry files, renamed a few to delete them, restarted several times. And still when I try to install it again I get this error - The Windows Installer package: C:Documents and SettingsUserLocal SettingsTempSIT20876.tmpvs_setup.ms_ could not be opened.

    I need to finish up some work from school so I need help as soon as possible.
    Thanks in advance,
    Travis

  • Anonymous
    July 30, 2005
    Update - used the microsoft clean up install utility or whatever its called..anyway cleaned up .net 2.0 and C# and now I get to the downloading then installing part and I get several errors...

  • Anonymous
    August 01, 2005
    Hi Raveresque - I looked at your log file and it does appear to be the same issue as Steve was seeing. Unfortunately, I was not ever able to determine the root cause of Steve's issue before he needed to reformat the machine and start over. I am asking around to see if there have been any other solutions found yet because I have heard of several customers who have reported this issue at http://lab.msdn.microsoft.com/productfeedback/. I will let you know what I am able to find...


    Hi Word - could you give me more detail about the errors that you see while installing C# Express? If possible, could you zip and attach dd_*.txt from your %temp% directory so I could see the exact error messages you are getting? You can send them to aaronste (at) microsoft (dot) com.

  • Anonymous
    August 01, 2005
    Hi Raveresque - we have a potential fix for the issue that you reported, but since we have been unable to reproduce it in our test lab, we are not sure if it will work or not. Would you be willing to try out an updated version of .NET Framework setup to see if it fixes this issue on your machine? If so, you can download it from http://astebner.sts.winisp.net/Tools/netfx.zip, extract the contents and run install.exe from within that package.

    Please contact me at aaronste (at) microsoft (dot) com if you try this and let me know whether or not it resolves the issue on your machine.

  • Anonymous
    August 06, 2005
    I installed some audio drivers for some odd reason and ended up having to do a system restore ( dont ask ) which undid all of my random .net framework visual studio registry deletings so I ended up with a new error Involving an HRESULT thinger. I then proceeded to another solution written by you deleting a registry value to make .net framework beta 2 reinstall and it fixed that problem as well as another one I was having before all this mess started.

    Thanks alot!
    Travis

  • Anonymous
    August 09, 2005
    Hi Raveresque - I still haven't heard back from you and I don't have a way to contact you, but I wanted to let you know that I have posted an additional blog item about the problem you are seeing. You can read it at http://blogs.msdn.com/astebner/archive/2005/08/09/449720.aspx. If you happen to read this and are still having the problem, I would really like if you could contact me via email at aaronste (at) microsoft (dot) com before using the steps in my new blog post. I want to see if the buddy build of the .NET Framework I posted at http://astebner.sts.winisp.net/Tools/netfx.zip will resolve your issue and help you avoid needing to try that other workaround.

    Thanks in advance!

  • Anonymous
    August 10, 2005
    Hi Aaron. try with all tools

    - cleanup_tool.exe
    - msicuu2.exe
    - vs2005_beta_cleanup_tool.exe

    When I run VS2K5 installer this continued says
    that:
    Microsoft Windows installer 3.0 and
    Microsoft .NET Framework 2.0 Beta 2 are installed. I don't see any of this product listing in Windows Install Clean Up utility.

    I try running with this issue and receive:

    "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908"

    I apreciate any help.

    -gabriel


  • Anonymous
    August 13, 2005
    Hi Gabriel - it sounds like you might be hitting a problem where VS setup thinks the .NET Framework is already installed but in reality it is not. Can you take a look at http://blogs.msdn.com/astebner/archive/2005/06/16/429997.aspx and see if this helps resolve this issue for you? If it does not, please gather up the log files listed at http://blogs.msdn.com/astebner/articles/447012.aspx and zip them and send them to me at aaronste (at) microsoft (dot) com and I will take a look and see what I can figure out.

  • Anonymous
    August 16, 2005
    Hi again Raveresque - in case you find my comments here and want to try out the patched .NET Framework beta 2 package, I had to move it to a different location so the previous link is not valid anymore. It is now available at http://astebner.sts.winisp.net/Tools/netfx20_beta2.zip.

  • Anonymous
    August 22, 2005
    &amp;nbsp;
    Deciphering specific HRESULT values

    HRESULT 0x80070002 and 0x80070003
    HRESULT 0x80070005...

  • Anonymous
    August 23, 2005
    The comment has been removed

  • Anonymous
    August 23, 2005
    Hi Arinaya - there is a known issue with the Visual Studo 2005 beta setup on Windows Server 2003 small business server that will cause setup to report that a previous beta version is installed. Can you try the workaround listed at http://blogs.msdn.com/astebner/archive/2005/05/13/417377.aspx and see if that works for you?

  • Anonymous
    August 24, 2005
    Thanks Aaron, that was it.

  • Anonymous
    August 30, 2005
    The comment has been removed

  • Anonymous
    August 31, 2005
    Do you know what the setup failure was for the device emulator ? The no such interface usually come when device emulator is not installed on the machine.

    From your Beta 2 disk, under the setup folder there is a folder called WCUARM run vs_emulator.exe from there and try to install manually. Do reboot the machine before running it.

    Also if you have the device emulator installed this patch helps making connectivty very robust

    http://www.microsoft.com/downloads/details.aspx?familyid=0E05817F-08D6-48A2-A572-CF77ED72C5BE&displaylang=en

    Thanks
    Amit Chopra

  • Anonymous
    September 13, 2005
    Hi Aaron,

    For what its worth - I tried your fixed .Net 2 install (http://astebner.sts.winisp.net/Tools/netfx20_beta2.zip) and it worked!

    I had the same problem as Raveresque

    Cheers and Thanks
    Hugo

  • Anonymous
    September 13, 2005
    Hi Hugo - thank you for trying out the updated .NET Framework 2.0 beta 2 bits and letting me know that it worked for you. It sounds like you are hitting the issue I described at http://blogs.msdn.com/astebner/archive/2005/08/28/457416.aspx in case you want to read more details about the cause and the fix.

    Thanks!

  • Anonymous
    September 15, 2005
    I'm sure a plenty of people have wondered what's under the covers of the Global Assembly Cache, and have...

  • Anonymous
    September 20, 2005
    The comment has been removed

  • Anonymous
    September 20, 2005
    The comment has been removed

  • Anonymous
    December 23, 2005
    Thank you!

    After untold hours spent trying to install a service pack and critical security update for .NET Framework 1.1 I was finally able to do so after removing the 2.0 version. No more MSVS Runtime or sidebyside errors. I'm afraid to try installing 2.0 again.

    Thank you!

    Matt

  • Anonymous
    January 04, 2006
    The comment has been removed

  • Anonymous
    January 09, 2006
    Hi Matt - the .NET Framework 2.0 is designed to work side-by-side with .NET 1.0 and 1.1. It sounds like you may have run into an issue that was a bug in one of the beta versions of the .NET Framework 2.0 but has been fixed in the final release. I encourage you to try to install the final release of the .NET Framework 2.0 from http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en and not be deterred by the previous problems you've run into. If you hit any future issues, please contact me directly using http://blogs.msdn.com/astebner/contact.aspx and I will do my best to assist.

    Hi Nadav - I posted a blog entry yesterday that may help solve this issue for you with the .NET Framework 2.0 final release. Can you please try the workarounds listed at http://blogs.msdn.com/astebner/archive/2006/01/08/510677.aspx and see if it helps solve this issue for you?

  • Anonymous
    January 09, 2006
    The comment has been removed

  • Anonymous
    January 14, 2006
    Your 1.0/1.1 cleanup tool proved to be very useful when trying to get a Linksys WMA11B up and running on an XP machine with 1.0, 1.1 and 2.0 previously installed. This product seems to XP SP2 and .NET since 1.0!

  • Anonymous
    January 17, 2006
    Hi Nadav - I have not seen a crash like you are reporting in the past. Could you please zip and send me the file dd_netfx20msi*.txt from this system so I could take a look? You can send it to aaronste@microsoft.com.

  • Anonymous
    February 03, 2006
    Hello Aaron,

    I finally managed to install the framework and VS 2005. I took the following steps to clean old installations:

    First, I deleted C:Documents and Settings%User%Application DataMicrosoftCLR Sec
    urity Configv2.0.* (and there were 3 different ones, one for Beta2, one for RC and one for final version).

    Second, I looked through the registry for all the keys/values that contained 50215 or 50727 and deleted them (carefully, of course - sometimes only parts of them).

    Afterwards VS installation came out clean. For now it seems to be working well.

    Regards,
    Nadav

  • Anonymous
    February 03, 2006
    Hi Nadav - I am very happy to hear that you were able to figure this out. I'm sorry for the hassle that you encountered while trying to get it to work and also for the delay in getting back to you after you sent the log files to me. I had been trying to reproduce the issue to figure out other possible suggestions to send you but hadn't had any luck.

  • Anonymous
    February 11, 2006
    Thanks for this, I finally managed to get .NET v2.0 to install after deleting everything. The error I was getting wasn't one I've seen anywhere else, so I'll post it here in case anyone else has the same problem:
    Error 25015.Failed to install assembly 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Microsoft.Build.Engine.dll' because of system error: The system cannot find the path specified.

  • Anonymous
    March 20, 2006
    Quick question... I don't have the beta uninstaller anymore. Is it mandatory? I know it's needed to run the programs given online and on the add/remove tool, but is there a manual way to remove this successfully before I try. I cannot find a beta version to download. If needed, can anyone find and/or supply a version to install so that I can finally uninstall my vb.net express 2005 and webforms webapps (forgot exact name) 2005...beta 2. Thanks in advance!

  • Anonymous
    March 20, 2006
    The comment has been removed

  • Anonymous
    March 21, 2006
    I was attempting to install Visual Basic Studio Express Edition.
    It said something about uninstalling several apps and the .NET Framework 2.0 beta prior to install.
    I mistakenly uninstalled the .NET Framework before uninstalling the other apps. SQL Server 2005 Express Edition Beta 2
    SQL Server 205 Tools Express Edition Beta 2
    SQL Server Setup Support Files
    MSDN Express Library 2005 Beta - English
    I'm not sure that I must remove the MSDN Express Library.  Anyhow, I have download and attempted to install dotnetfx.exe it fails and crashes asking to send a report which I have done.
    I tried the following cleanup tool: http://astebner.sts.winisp.net/Tools/netfx20_beta2.zip
    And attempted again to install, it failed.  I'm unable the apps until I have 2.0 reinstalled.
    Any help will be appreciated.

  • Anonymous
    March 21, 2006
    I made problems worse before I made them better.
    I previously had a FAT32 partition for my Primary drive, I converted it to NTFS and began a tedious process of manually setting security for many of the key folders. I used a properly installed version of Windows XP as a guide.  Some subfolders may still be set wrong.  SYSTEM didn't have access to my temp folder.  This prevented my reinstallation of .NET 1.0 and 1.1 Frameworks.  I expect I may be able to install the 2.0 framework as well now.   (Fingers crossed)

  • Anonymous
    March 21, 2006
    Yeah, that fixed it.  I know have 2.0 back in, I should be able to accomplish my tasks, I won't post anymore unless I run into more problems.

  • Anonymous
    March 21, 2006
    My attempts at uninstalling:
    SQL Server 2005 Express Edition Beta 2
    SQL Server 205 Tools Express Edition Beta 2
    are met with the following message:
    The Microsoft .Net Framework 2.0 is not installed. Please install before running setup.
    I have installed, I have attempted the clean, I have attempted reinstall. Both of these install times appear to be successful.  I did reboot after the first install, and rebooted after the second install.  My process of cleaning the 2.0 install included the steps noted at the very top this page Titled, "Steps to clean up a machine to fix a failed .NET Framework 2.0 installation:" These include some minor registry changes and folder deletions.

    As stated before, any help is greatly appreciated

  • Anonymous
    March 21, 2006
    Hi Lucius - Can you please try to use the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove the SQL 2005 beta versions that are still installed on your system and see if that solves this issue for you?

  • Anonymous
    March 21, 2006
    hi all,

    I am trying to create an ODBC connection to Access 2003 from vb.net2005 final version with framework 2.0 final version (I didn't install the beta version before), but when the code trying to open the connection this error appears:

    Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ,  
     at System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
      at System.Data.Common.ADP.NeedManualEnlistment()
      at System.Data.Odbc.OdbcConnection.Open()
      at abd.frmSplash.frmSplash_Load(Object sender, EventArgs e)

    I run the same code on another pc and it run without any problem, I think that the problem in the framework.

    Note, when I installed the .net2005 an error occurred first time, then I tried to install it second time and it run without error , may be the framework installed from the first time and didn't installed at the second time, so this may be the error.

    Any help for this problem?

    Thanks in advance.

  • Anonymous
    March 23, 2006
    Hi .NET Developer - This does seem like an issue with the .NET Framework 2.0 on this system.  Can you please try to repair it using the entry in Add/Remove programs and see if that helps?  If it does not help, can you please try to uninstall the .NET Framework and then reinstall it from the folder wcudotnetframework on your original VS 2005 installation media or from http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5?

  • Anonymous
    March 26, 2006
    thanks  astebner,

    but i tried to uninstall the framwork and by mistake i removed something else, so i installed the framework again and repaired vb.net and every thing is work now

    thanks for you all

    assalamu alaikum (bye in arabic)'

    .net developer

  • Anonymous
    April 02, 2006
    Aaron,

    Developer here; think I may have a unique one. Scanning through the comments it looks like my current error is most similar to Nadav in January. My original error propagated, however, from adding an assembly to the GAC, presumably corrupting it. I have uninstalled MSVS 05 and .NET2.0 in attempt to fix it, now I have the failing .Net 2.0.
    Ran the tools.
    Any additional thoughts/info on gacutil.exe leading to this issue?

    Thnx,
    Nash
    ashworth@comcast.net

  • Anonymous
    April 04, 2006
    Nash again,

    The solution cleaned up my corrupted Global Assembly Cache; thanks. 'Delete the GAC_32 and GAC_MSIL folders' perhaps? The action seemed to be the difference.

    Nash

  • Anonymous
    May 07, 2006
    Thanks for posting this thread - I had a client who had an error message that said:

    IsSysTxEqualSysEsTransaction
    Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    A this was the only place I could find it mentioned and resolved.

    My client just repaired his version of the dot net framework and all was well!

    Best Regards to all concerned and thanks again for the post.

  • Anonymous
    May 30, 2006
    I have posted an updated version of the .NET Framework cleanup tool that now contains support for automatically...

  • Anonymous
    June 14, 2006
    The comment has been removed

  • Anonymous
    June 14, 2006
    Hi Alan - Can you please try to use the automated cleanup tool to remove any pieces of the .NET Framework 2.0 that are on your system and then try installing again?  You can find information about the cleanup tool at http://blogs.msdn.com/astebner/archive/2006/05/30/611355.aspx.

  • Anonymous
    June 17, 2006
    A friend of mine downloaded the final version of Net Framework 2.0 from Microsoft.com.  While he did this for me I downloaded the redistributable pack.  The reason my friend downloaded the Net Framework file is that he had Broadband access and I only have dial up.  The day the disk with the Net Framework arrived, I was very sleepy.  I accidentally loaded the Net Framework before loading the Redistributable pack.  I tried uninstalling and reinstalling the Net Framework, but to no avail.  I don't want to destroy any dll's because I had bad luck with a dll a few years back.  Is there anything I can delete that will allow me to reinstall Net Framework 2.0 without destroying any dll's?  I would be happy to delete any registry keys.  

  • Anonymous
    June 18, 2006
    Hi Ted - The .NET Framework is the same thing as the redistributable pack.  I don't think you should need to uninstall and reinstall.  If you find that it is necessary, you can try out the removal tool at http://blogs.msdn.com/astebner/archive/2006/05/30/611355.aspx.  Hope this helps!

  • Anonymous
    June 23, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/492809.aspx

  • Anonymous
    June 28, 2006
    How do i install .Net Framework 2.0 without administrator login ?

  • Anonymous
    June 30, 2006
    Hi oyeGURU - You will need to deploy the .NET Framework 2.0 with elevated privileges using Active Directory if you want to install without an administrator logging in.  A lot of the things that the .NET Framework setup does require administrator rights, so you cannot install as a normal user.

    You can find instructions for how to do this kind of deployment at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/ndp2_dplad.asp.

  • Anonymous
    August 09, 2006
    PingBack from http://www.remembersite.com/2006/08/09/how-fully-clean-an-old-net-framework-20-installation/

  • Anonymous
    September 14, 2006
    I came across this page while troubleshooting an install of Office 2007 Beta 2 Technical Refresh (B2TR).  I was getting all sorts of errors writing to various assemblies, and ended up unable to either install or uninstall Office.

    I finally figured out the problem.  I had installed Office 2007 B2 with .NET Framework 2.0 installed.  I then ran into a performance problem with ATI's Catalyst Control Panel that required uninstalling .NET Framework 2.0, so I did.  Unfortunately, Office 2007 depended on some assemblies that were now in the unreachable GAC_32 and GAC_MSIL directories!

    I know nothing about .NET, but I manually moved all the files from GAC_32 and GAC_MSIL into GAC, and the Office installer was now happy.

    I'm not even sure which product has the bug.  Office presumably depends on .NET to install assemblies in the right place, and doesn't know the true directories that they're installed in.  But what should happen when that .NET is now an older version?  Quite a messy dependency chain.  I know - I'll let Aaron worry about it.

    Jay

  • Anonymous
    October 07, 2006
    NadavYou saved my rear. Your solution solved my problems after hours of research and trial/error.ThanksMark

  • Anonymous
    October 21, 2006
    The comment has been removed

  • Anonymous
    January 18, 2007
    Help! Yes, I installed VB for the first time since I started school. Then I removed it because it took too much space because I was a space freak. Anyways, I want to reinstall it again. Now it says that 'vs_setup.ms_' can not be opened. I have tried your solution. But, I dont think it was very in-depth so I did not follow. Any help would be appreciated..

  • Anonymous
    January 19, 2007
    Hi Kevinremiix - The steps in this particular blog post are only applicable to the .NET Framework 2.0, not to VB.  Did you previously uninstall by using the Add/Remove Programs entry for VB Express?  If so, you should be able to download the VB Express package and run it from http://msdn.microsoft.com/vstudio/express/vb/download/. If that version of the VB Express installer is giving you this same error, you can try to use manual download and install steps like the ones listed at http://blogs.msdn.com/astebner/articles/551674.aspx. Hopefully one of these will help.

  • Anonymous
    February 16, 2007
    Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributable

  • Anonymous
    February 21, 2007
    hi aron i got some troubles when installing visual c# express edition i've tried your steps for the failed framework but when i try to open the installed visual c# this happens: the beta period is over thank you for your participation you can now remove microsoft visual c#2005 express edition beta form your computer. can you help me?

  • Anonymous
    February 21, 2007
    Hi Yeahyeah - It sounds like you had a previous beta of the C# Express Edition that was not fully removed.  I suggest trying the following steps:

  1.  Uninstall C# Express
  2.  Remove the registry values listed at http://blogs.msdn.com/astebner/archive/2005/11/14/492765.aspx
  3.  Remove the registry sub-key named HKEY_CURRENT_USERSoftwareMicrosoftVCSExpress
  4.  Try to install Visual C# Express again Hopefully this will help.
  • Anonymous
    March 26, 2007
    The comment has been removed

  • Anonymous
    July 12, 2007
    Success...Thank You!!! Apparently, the latest MS security patch for .NET 2.0 (KB928365) corrupted my .NET install.  I was unable to uninstall the patch or uninstall, reinstall or repair the .NET 2.0 install.  The CleanUp tool worked flawlessly. I was then able to reinstall .NET and apply the patches. Thank you.

  • Anonymous
    July 17, 2007
    Hi Aaron, I just installed Vista and wanted to install Sql Server 2005 developer. I met the following issue: It successfully installed pre-requisite Sql Server native client and Sql server support files of Sql server, when I click next to proceed installation, it pop up error window after that: "setup has detected a problem with microsoft .net framework installation and cannot proceed. Microsoft .net framework 2.0" But my machine has already installed .net framework 2.0, I double check for it by installing .net framework 2.0. it display the error: "The product is already installed as part of the operating system." However, in Program and features, .net framework 2.0 is not listed in the currently installed programs… Then I used your clean up tools to try to clean .net framework 2.0. But it didn't list .net 2.0. Then I wondered if I has installed .net 2.0 or not... Seems this is a dead lock for me to proceed my installation. I also called Support Center for help, they were not able to offer a solution for this… I would appreciate it a lot if anyone here can give a big hand. Thanks in advance!

  • Anonymous
    July 19, 2007
    The comment has been removed

  • Anonymous
    July 29, 2007
    Hi Aaron I have spent hours trying to install .net 2.0 on to a Windows 2000 workstation. The installation gets to approximately 40% complete and just stalls. This happens every time just after the command to disable the cancel button. The onscreen message appears to be writing reg keys to softwaremicrosoftwindowscurrentversionsibebysidepatchedcomponents Yet when I have checked the dd_netfx20MSI text file its last command is: MSI (s) (6C:FC) [20:17:28:468]: Invoking remote custom action. DLL: C:WINNTInstallerMSI17.tmp, Entrypoint: QuietExec Because I have to forcefully close the install I have used your cleanup tool to successfully remove all versions of .net installed but still have the same problem upon attempting to reinstall. I have had trouble finding information on my exact problem and any insight into this would be hugely appreciated. Thanks Simon

  • Anonymous
    July 30, 2007
    Hi Shobman - Can you please make a copy of the dd_netfx20msi*.txt file while setup is stalled at 40% complete on your system, and then zip and send me that entire log so I can take a look to see if I can figure anything out about the root cause of this issue?  You can send the log to Aaron.Stebner (at) microsoft (dot) com. Also, in the meantime, it might help to try to use the workaround 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 in this scenario.

  • Anonymous
    September 08, 2007
    PingBack from http://mikesdump.wordpress.com/2005/04/16/uninstalling-vsnet-2005-pre-beta-2/

  • Anonymous
    December 12, 2007
    You saved my life...

  • Anonymous
    December 17, 2007
    Re-installing .Net Framework 2.0, 3.5 broke it!

  • Anonymous
    December 30, 2007
    PingBack from http://www.lazycoder.com/weblog/index.php/archives/2007/12/31/links-for-2007-12-31/

  • Anonymous
    January 08, 2008
    PingBack from http://www.wehuberconsultingllc.com/wordpress/?p=628

  • Anonymous
    February 07, 2008
    Thanks so much deleting the folder .Net framework and reinstalling worked.

  • Anonymous
    April 15, 2008
    Aaron, Thank you for your help on this .Net Framwork issue. It was a big help and work grweat. Don

  • Anonymous
    April 22, 2008
    No luck here :( I have problem with ATi video drivers, which leads to .net 2 and I keep getting error when I try to reinstall.

  • Anonymous
    April 23, 2008
    Hi ChinaTradeWiki - I'd suggest trying the steps listed at http://blogs.msdn.com/astebner/archive/2008/03/07/8108332.aspx to see if they help resolve this issue installing the .NET Framework 2.0 on your system.

  • Anonymous
    May 10, 2008
    PingBack from http://www.the3factory.com/post/2008/05/20-Framework-won't-install.aspx

  • Anonymous
    May 20, 2008
    Hi, Aaron. I'm glad to see this thread.  I really need your help.  A while back we took a Server 2003 installation and cloned it to new hardware, as the old was becoming unreliable.  Believe it or not, 99% of everything worked.  The one problem we had was with sharepoint.  It worked for the most part, but we got 'web part errors' due to some missing files from the other server.  In the mess of safe mode operation and missing file copying, something happened to .net 2 and probably asp.net, making it impossible to uninstall/reinstall .net, sharepoint, etc.  We've discovered that there's a F: drive on the old server with a bunch of temp folder info on it.  Someone evidently set that computer to temp out to this drive.  It's a physical drive on the original server, and we don't have a physical for the new.  I created a shared folder and mapped it to F: and provided it with files.  I still get the same errors trying to reinstall .net2 and/or sp1, sharepoint, backupassist is not working.  Used your tool to clean up 2.0 install, and that removes it from the add/remove programs list, but there are still services trying to run as well as .net 2 info in the drive and registry.  We still get 'the temp folder is either full or unreachable.  Verify blah blah blah' but it's there and plenty of room and not read only and so forth.  What do we do?

  • Anonymous
    May 20, 2008
    Hi Emhartain - I'm not sure how best to get rid of the remaining references to that other temporary directory.  You may need to manually search the registry and update locations there or something like that.  Unfortunately, this is one of the dangers of cloning an OS install and moving it to a different physical computer that doesn't have the same configuration.

  • Anonymous
    September 12, 2008
    PingBack from http://www.monclovacaliente.com/programas/cleanup-tool-remove-net-framework

  • Anonymous
    January 20, 2009
    PingBack from http://www.hilpers.com/1041110-problem-bei-install-framework-2-a

  • Anonymous
    April 21, 2009
    Tired of trying to install Expression Web 2 over and over again only to have the installation crash with

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-2/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-3/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-7/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-6/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-5/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-8/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-12/

  • Anonymous
    April 21, 2009
    PingBack from http://www.codedstyle.com/known-causes-for-expression-web-2-installation-crashes-14/

  • Anonymous
    June 19, 2009
    PingBack from http://debtsolutionsnow.info/story.php?id=6809

  • Anonymous
    June 29, 2010
    Thans guy for this great tool, it saved my life !

  • Anonymous
    August 11, 2010
    The comment has been removed

  • Anonymous
    September 30, 2010
    The comment has been removed

  • Anonymous
    September 30, 2010
    The comment has been removed

  • Anonymous
    November 17, 2010
    When i install the microsoft visual studio 2005 i can't finish installation what is the Problem.. of my software..

  • Anonymous
    November 18, 2010
    Hi Jay - There are a lot of possible causes for this type of failure, so I'll need to look at your log files to narrow this down.  Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to gather all of your setup log files, post the file named %temp%vslogs.cab that is created by this tool to a file server (such as http://skydrive.live.com) and then reply here with a link I can use to download your logs and take a further look?

  • Anonymous
    January 11, 2011
    its works properly. i have try it. nice

  • Anonymous
    January 11, 2011
    i have try it and its works properly. nice trick to remove manualy vs-2005. thanks to all team mambers of this websites.

  • Anonymous
    March 13, 2011
    I'm install .netframe work 2.0 but it error 25007. i try to every thing on the top but him say error 25007 plzz Help me thank you

  • Anonymous
    March 13, 2011
    Hi Tenjoteng - I'd suggest using the steps and the cleanup tool listed at blogs.msdn.com/.../8108332.aspx to fully remove the .NET Framework from your computer, then try to re-install the .NET Framework 3.5 SP1 (which will also install the .NET Framework 2.0 SP2 and 3.0 SP2 for you behind the scenes).

  • Anonymous
    November 05, 2012
    The comment has been removed

  • Anonymous
    November 05, 2012
    Hi Moondragon - 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?

  • Anonymous
    June 27, 2013
    Hi Aaron, I have the same problem as moondragon. I tried all the steps You mentioned before. I made setup log files. Could you please help me? blogs.msdn.com/.../408856.aspx Thanks in advance!

  • Anonymous
    June 28, 2013
    Hi Zhartai - 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?

  • Anonymous
    June 28, 2013
    Sorry, im a bit sleepy, i added wrong link. Here is the correct link. skydrive.live.com/redir

  • Anonymous
    June 30, 2013
    Hi Zhartai - This is the error that is causing the .NET Framework to fail to install on your computer: MSI (s) (98:1C) [04:49:12:187]: Internal Exception during install operation: 0xc0000005 at 0x000006427EE83C3F. This error code means access is denied.  It might help to try to reset your file/folder/registry permissions by using steps like the ones at blogs.msdn.com/.../solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions.aspx. If that doesn't help, then it might also help to repair Windows Installer 4.5 using the installer at www.microsoft.com/.../details.aspx.

  • Anonymous
    February 03, 2014
    Brilliant!  Worked for me.  Thank you.

  • Anonymous
    March 11, 2014
    Manually delete finally succeeded,Good Post!

  • Anonymous
    March 26, 2014
    9 years after the post, still thanks!!!!! ;)

  • Anonymous
    July 07, 2014
    The comment has been removed

  • Anonymous
    August 13, 2014
    The dotnetfx_cleanup_tool fixed my Microsoft FrameWork 2.0 installation prolem. Thank you very much.

  • Anonymous
    September 08, 2014
    Dear Mr. Stebner Thank you for your solutions, but I want to add some information what had worked in my scenario. Windows 2003 Server, after inplace update(repair), applying SP2 to the server, Framework 2.0 was missing, although installed. The trick was to start the repair installation of NET Framework 4.0 after cleaning up the NET Framework 2.0 installation. Then it was possible to install the NET Framework 2.0 without the LoadLibraryShim() 0x80131700 error. After that it was also possible to reinstall / repair the other NET Framework versions.

  • Anonymous
    November 14, 2015
    Thanks, it worked! Wish I had found your blog few wasted hours earlier.

  • Anonymous
    May 22, 2017
    Thank you. This is was the solution for my problem :)