Home > How-To, Note to Remember > Restore .NET Framework back to its original state

Restore .NET Framework back to its original state

July 25th, 2010


If you have done a clean re-install of SolidWorks and are still getting strange errors (such as missing dlls, or “unknown file types”), it may well be Microsoft .NET Framework at fault. Most of the time, looking in the Windows Event Viewer will confirm this if there are .NET Framework errors showing up.

The first step is to do a repair of .NET Framework, by going to Add/Remove Programs, right-clicking on .NET Framework (choose 3.5 or 3.1 if present) and going Repair. This should work, however sometimes it doesn’t.

You can also try:
Exploring the SolidWorks DVD and in the prereqs folder run “dotnetfx3.exe” (or dotnetfx3_x64.exe). I tried this however I got strange errors about “mscoree.dll” etc.

Download and usage

If all else fails, you can use a “.NET Framework Cleanup Tool“. It works really well and has worked for me every time. You can download this Executable Tool (in a Zip file) from: http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

  • Just run the exe file and go “Cleanup Now”.
  • It takes around 5 minutes to process and at the end you will be prompted to Restart the Computer. Restart the Computer/
  • After the reboot, look in Add/Remove Programs. If its Windows XP, you will see the original .NET Framework 1.1 listed. Thats perfect.
  • From the prereqs folder of the SolidWorks DVD run “dotnetfx3.exe” or “dotnetfx3_x64.exe”.
  • Once this is installed, you should be able to start SolidWorks. (No need to go reinstalling SolidWorks)
  • Fingers crossed the dll errors or strangeness in SolidWorks will have gone.

This worked fine on SolidWorks 2009 and SolidWorks 2010
Search the SolidWorks Knowledge Base for the dll error messages or for errors regarding the feature you are having issues with (such as property tab builder etc.) It will typically tell you if its a .NET issue.
Link to dotnetfx3.exe and dotnetfx3_x64.exe
After running the cleanup tool, rebooting, installing dotnetfx3.exe SolidWorks will work fine.
Installing .NET Framework 3 (the dotnetfx3.exe linked above and on the SW prereqs folder), will install .NET Framework 2.0 and 3.0.
I suggest you run Windows Updates, several times. More than likely a .NET 3.5 will have to be installed. Note also, until you run Windows Updates and install all .NET Frameworks that were in place (in Add/Remove Programs in the very begining), some other installed programs on your computer may give out.
Lastly, use at your own risk!

How-To, Note to Remember , , , ,

  1. October 24th, 2010 at 15:05 | #1

    I have a SolidWorks / Windows (Win XP Pro x64) problem that this article may solve. When I perform an SW upgrade, I receive the error message: “SolidWorks is not supported on Windows XP service pack 0. You must update your system to service pack 1 or higher.”

    I have all the latest Win XP Pro x64 SP installed as of last week, so I believe windows cannot determine the current SP. So my question is what .NET Framework version (1.1, 2.0, 3.0, 3.5, etc?) detects windows current service pack? I believe it is a registry problem, and MS Tech support has not been about to solve the problem yet.

    When I preform a windows update, I receive the message “administrators only” and the error 0x80070002 appears in the windows update log. I suspect this error appears because Windows cannot detect the service packs (registry error) even though Windows XP SP 3.0 has been installed.

  2. October 24th, 2010 at 15:15 | #2

    Hi Chris,

    Indeed, try the .NET Framework Cleanup tool. I’m not sure however if the SolidWorks installer (msiexec) checks the version of Windows based on the .NET Framework or not.

    I suggest you look into the Windows Installer.
    1. Check that the Windows Installer Service is running (Control Panel -> Administrative Tools -> Services)
    2. Check the Windows Installer Version. (Start -> run -> cmd. Then type: msiexec –version ) It should be Windows Installer Version 4.5. You can try and download and install the Windows installer from: http://support.microsoft.com/kb/942288

    After doing the above, I would try running the SolidWorks MSI installer. It should be located in /swwi/data/SolidWorks_English.msi (or similar).

    SolidWorks does require a “healthy” running windows OS, so you may have to take more drastic steps to cleanup/reinstall windows. Best of luck.

  3. October 24th, 2010 at 15:44 | #3

    Hi Stephen,

    Windows is reporting Windows ® Installer. V 3.01.4000.3959. Since this is a Dell M90 laptop, could Dell be using a different windows installer than Microsoft? Will running Windows Installer V4.5 installer remove my existing software programs, or is it a repair (I have the data backedup? I would be time consuming to reinstall all my software.

    It do not solve my problem, so I am wondering if I should try .NET framework 3.5 SP1 (and / or .NET framework 3.0 SP2) first? Or,should I try using a registry repair software first as everything else seems to be working fine on my system except for Windows update? Other software continues to update (example: Quickbooks) without problems.

    Here is the MS article that MS suggested I try to restore Windows Updates :http://support.microsoft.com/kb/316524

  4. October 24th, 2010 at 15:54 | #4

    Hi Chris,

    Dell should not have a different or require a specific version of windows installer.
    I would recommend that you install the latest “Windows Installer” which is 4.5 for Windows XP SP3.
    Installing Windows Install V4.5 will not remove your existing programs.

    By all means, try doing the .NET Framework cleanup firstly to see if that solves your problem.
    I would avoid using registry repair software. It is difficult to get a good registry repair program, and sometimes they can do more harm than good.

    I see the MS article regarding the Windows Update error you are getting.
    Again, if all other programs are working OK, and you just want to get SolidWorks installed, I would firstly get the latest version of the Windows Installer downloaded and installed and go from there.

    .NET Framework errors generally show up in the Windows Event Viewer. (Control Panel -> Administrative Tools -> Event Viewer)

    Let us know how it goes.

  5. November 1st, 2010 at 09:52 | #5

    Hi Stephen,

    The damage to the OS prevented me from installing NET Framework 3.0 or greater, so I first reinstalled Win XP Pro x64 and then reinstalled SolidWorks 2010. Everything seems to be working now as well as the MS updates.

    Here is an article on system restore (http://www.myfixes.com/articles/system) which may have worked for my situation. The problem is a used the wrong DVD (previous Dell model)for the system recovery, and this required a reinstall of the OS.

  6. November 1st, 2010 at 23:21 | #6

    You made the best decision. Having a fresh installation will make things a lot faster.

  7. uziel
    May 24th, 2012 at 19:54 | #7

    hi i have a problem when im installing sw 2009, the error is 1935, i have done everything, In some forums said that the problem is the framework, but when i try to install or reinstall it, i have an error of installing

  8. May 25th, 2012 at 23:05 | #8

    If you are getting a 1935 error, then first disable your Anti-Virus. If you still get a 1935 error, download and install “Microsoft XML Core Services” from http://www.microsoft.com/en-us/download/details.aspx?id=19662

  1. No trackbacks yet.