none
how do I repair .netframework 2.0 in windows 7

    Question

  • I am running a factory install of 64bit windows 7 and at some point I started getting .net framework errors whenever I tried using a program that used to work.  Unfortunately I can't figure out what caused it.

    The .netverification tool says my computer fails the 2.0 test.

    I ran sfc/scannow

    it reported there were errors that it could not fix and I can't make sense of the log file.

     

    Here is the error that synctoy throws.

    ee the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.BadImageFormatException: Could not load file or assembly 'Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
    File name: 'Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
       at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
       at System.Windows.Forms.Control.WmCreate(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Form.WmCreate(Message& m)
       at MessageCenterGadget.TNCReciever.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    TosBulletinBoard
        Assembly Version: 1.5.0.0
        Win32 Version: 1.5.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/TosBulletinBoard.exe
    ----------------------------------------
    PresentationFramework
        Assembly Version: 3.0.0.0
        Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
    ----------------------------------------
    WindowsBase
        Assembly Version: 3.0.0.0
        Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    PresentationCore
        Assembly Version: 3.0.0.0
        Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR
        CodeBase: file:///C:/windows/assembly/GAC_64/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
    ----------------------------------------
    System.Core
        Assembly Version: 3.5.0.0
        Win32 Version: 3.5.30729.4926 built by: NetFXw7
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    TosBulletinBoard.resources
        Assembly Version: 1.5.0.0
        Win32 Version: 1.5.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/en/TosBulletinBoard.resources.DLL
    ----------------------------------------
    ApiAccessor
        Assembly Version: 1.0.3588.35034
        Win32 Version: 1, 5, 0, 0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/ApiAccessor.DLL
    ----------------------------------------
    msvcm90
        Assembly Version: 9.0.30729.4926
        Win32 Version: 9.00.30729.4926
        CodeBase: file:///C:/windows/WinSxS/amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_08e1a05ba83fe554/msvcm90.dll
    ----------------------------------------
    BulletinBoard.Gadget
        Assembly Version: 1.0.0.5
        Win32 Version: 1.0.0.5
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/BulletinBoard.Gadget.DLL
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    PresentationFramework.Aero
        Assembly Version: 3.0.0.0
        Win32 Version: 3.0.6920.4902 built by: NetFXw7
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/PresentationFramework.Aero/3.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    CalendarGadget
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/Calendar/CalendarGadget.dll
    ----------------------------------------
    ClockGadget
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/Clock/ClockGadget.dll
    ----------------------------------------
    StickyNote
        Assembly Version: 1.0.0.5
        Win32 Version: 1.0.0.5
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/StickyNote/StickyNote.dll
    ----------------------------------------
    ToDoList
        Assembly Version: 1.0.0.1
        Win32 Version: 1.0.0.1
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToDoList/ToDoList.dll
    ----------------------------------------
    ToshibaGadgets
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/ToshibaGadgets.dll
    ----------------------------------------
    LaptopCenter
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/LaptopCenter.DLL
    ----------------------------------------
    WebThumbnailGadget
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/WebThumbnailGadget/WebThumbnailGadget.dll
    ----------------------------------------
    WebThumbnailShared
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/WebThumbnailGadget/WebThumbnailShared.DLL
    ----------------------------------------
    Windows7Taskbar
        Assembly Version: 1.5.0.0
        Win32 Version: 1.5.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Windows7Taskbar.DLL
    ----------------------------------------
    ToshibaGadgets.resources
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/en/ToshibaGadgets.resources.DLL
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
        CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Saturday, March 05, 2011 2:20 AM

All replies

  • Hi eruby,

    Thanks for your post.

    According to your description, you have tried the stpes in this blog: http://blogs.msdn.com/b/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx. But the sfc /scannow command could not fix the errors. In this case, you might try the steps in the below links that explain how to locate and attempt to fix the errors:

    Also, you could go to Start menu -> Control Panel -> Uninstall a program -> Turn Windows features on or off to repair the .NET Framework:

    1. Check whether the checkbox of the .NET Framework 3.5.1 has been selected, if so, un-select the check box, click OK;
    2. Open the Turn Windows features on or off window again, and select the checkbox of .NET Framework 3.5.1, click OK.

    I hope this helps.

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Andrew.WuModerator Sunday, March 13, 2011 5:54 AM
    • Unmarked as answer by eruby Friday, April 22, 2011 12:36 AM
    Monday, March 07, 2011 11:21 AM
    Moderator
  • Thank you for you reply Andrew,

    I tried " go to Start menu -> Control Panel -> Uninstall a program -> Turn Windows features on or off to repair the .NET Framework" but it did not work.

     

    The log file from .netverification tool gives me the following errors


    [04/21/11,20:27:22] Launching process 'Netfx20TestApplication.exe' now

    [04/21/11,20:27:22] Process successfully launched. Waiting 300 seconds for it to complete.

    [04/21/11,20:32:22] ****ERROR**** Timeout value exceeded for process 'Netfx20TestApplication.exe'

    [04/21/11,20:32:22] Not running action 'Files - .NET Framework netfxperf.dll' for product '.NET Framework 2.0 SP2' because the OS condition does not match

    [04/21/11,20:32:22] ****ERROR**** Verification failed for product .NET Framework 2.0 SP2

    How do I fix the "OS condition"?

    • Proposed as answer by Rex Honour Friday, April 29, 2011 10:20 AM
    • Unproposed as answer by Rex Honour Friday, April 29, 2011 10:20 AM
    Friday, April 22, 2011 12:35 AM
  • Hi eruby,

    I want you to try out

    Go to control panel --> Uninstall .NET Framework 2.0

    Restart PC

    Download Standalone Framework 2.0 Installer

    Install Framework Run As Administrator

    It should work...

    Regards,


    Roozan Parvez Bharucha MCT, MCITP (SQL Server 2008, Windows 7 Admin), MCTS (SQL Server 2008, Windows 7 Config, .NET Frmwk 3.5, .NET Frmwk 4.0 (Windows)), MCPD Enterprize App (Frmwk 3.5), MCPD Windows (Frmwk 4.0) CEO, RajAryanTech
    • Proposed as answer by RakeshAhujabhai Friday, April 29, 2011 4:36 PM
    • Unproposed as answer by eruby Thursday, May 05, 2011 11:47 AM
    Friday, April 29, 2011 10:21 AM
  • I am about to go insane with this .net corruption!!!

    I'm running windows 7 ultimate x64 sp1. .net 4 framework all current updates. Several programs require .NET Framework NGEN v2.0.50727 to run. .net v2 is corrupt some how and I've tried everything mentioned in this thread and more. Uninstalled all .net and reinstalled. Standalone installers will not work. Win 7 says part of OS turn the feature on or off. .net 4 installs fine but does nothing for prior versions. Like eruby, I ran sfc/scannow  and get unable to fix some problems.

    I have spent hours researching online and trying all kinds of possible solutions. I guess I should have just done a fresh install but I hate loosing. Not finding a solution is really pissing me off.

    I've run different reg cleaner/fixers that I trust and they helped other things. I can't believe there's not a way to force a fresh install. Some sort of fix program to set the stock windows 7 .net 3.5.1 installation back to stock.

    HELP!!!!


    This helps somthing it seems

    http://uksbsguy.com/blogs/doverton/archive/2008/02/01/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx

    From an elevated cmd prompt:

    %windir%\Microsoft.NET\Framework\v2.0.50727\ngen.exe update

    %windir%\Microsoft.NET\Framework64\v2.0.50727\ngen.exe update


    Thursday, May 05, 2011 6:53 AM
  • Roozan,

    Thank you for the reply but I have tried uninstalling and reinstalling every version of .net framework to no avail.

     

    SeaHawk,

    Did running the two elevated commands work for you?

    Thursday, May 05, 2011 11:49 AM
  • Hi eruby,

    Now i suppose, there is a serious clash in your system's existing softwares and .NET Frameworks.

    As of now, I think some drivers or might be installed softwares are causing clash to your system,

    Can u tell what softwares you installed after restoring to factory state...

    If possible try installing to factory state and then, go to control panel --> add New Programs --> Turn Windows Features on off --> Select All features of the option .NET Framework 3.5 --> till it turns into a tick mark...

    Click ok...

    Now try if it works..

    Before that I would also like to add that Windows 7 64 bit supports .NET framewok 3.5 so might not support .NET framework 2.0 untill .NET framework installation is completely removed... also check whether you are running .NET framework 2.0 64 bit installer or not...

    Thanks


    Roozan Parvez Bharucha MCT, MCITP (SQL Server 2008, Windows 7 Admin), MCTS (SQL Server 2008, Windows 7 Config, .NET Frmwk 3.5, .NET Frmwk 4.0 (Windows)), MCPD Enterprize App (Frmwk 3.5), MCPD Windows (Frmwk 4.0) CEO, RajAryanTech
    • Proposed as answer by Rex Honour Thursday, May 05, 2011 2:48 PM
    • Marked as answer by eruby Wednesday, July 20, 2011 6:59 PM
    • Unmarked as answer by eruby Wednesday, July 20, 2011 6:59 PM
    Thursday, May 05, 2011 2:48 PM