如何在Windows 7中修复.netframework 2.0 [英] how do I repair .netframework 2.0 in windows 7
问题描述
我正在运行64位Windows 7的出厂安装,每当尝试使用以前可以正常运行的程序时,我都会开始出现.net框架错误.不幸的是,我不知道是什么原因造成的.
.netverification工具说我的计算机未通过2.0测试.
我运行了sfc/scannow
它报告存在无法修复的错误,我无法理解日志文件.
这是同步引发的错误.
在此消息末尾以获取有关调用
的详细信息
即时(JIT)调试,而不是此对话框.
**************异常文本**************
System.BadImageFormatException:无法加载文件或程序集可访问性,版本= 2.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a"或其依赖项之一.该模块应包含程序集清单.
文件名:可访问性,版本= 2.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a"
在System.Windows.Forms.Control.OnHandleCreated(EventArgs e)中
在System.Windows.Forms.Form.OnHandleCreated(EventArgs e)中
在System.Windows.Forms.Control.WmCreate(Message& m)中
在System.Windows.Forms.Control.WndProc(Message& m)中
在System.Windows.Forms.Form.WmCreate(Message& m)中
在MessageCenterGadget.TNCReciever.WndProc(Message& m)中
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)中
在System.Windows.Forms.NativeWindow.Callback处(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
WRN:程序集绑定日志记录已关闭.
若要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:与程序集绑定失败日志记录相关的性能损失.
要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].
**************装配体**************
mscorlib
程序集版本:2.0.0.0
Win32版本:2.0.50727.4952(win7RTMGDR.050727-4900)
代码库:file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
TosBulletinBoard
程序集版本:1.5.0.0
Win32版本:1.5.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/TosBulletinBoard.exe
----------------------------------------
PresentationFramework
程序集版本:3.0.0.0
Win32版本:3.0.6920.5001创建人:Win7RTMGDR
代码库:file:///C:/windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
程序集版本:3.0.0.0
Win32版本:3.0.6920.5001创建人:Win7RTMGDR
代码库:file:///C:/windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
系统
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
PresentationCore
程序集版本:3.0.0.0
Win32版本:3.0.6920.5001创建人:Win7RTMGDR
代码库:file:///C:/windows/assembly/GAC_64/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Core
程序集版本:3.5.0.0
Win32版本:3.5.30729.4926创建人:NetFXw7
代码库:file:///C:/windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
TosBulletinBoard.resources
程序集版本:1.5.0.0
Win32版本:1.5.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/en/TosBulletinBoard.resources.DLL
----------------------------------------
ApiAccessor
组装版本:1.0.3588.35034
Win32版本:1,5,0,0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/ApiAccessor.DLL
----------------------------------------
msvcm90
程序集版本:9.0.30729.4926
Win32版本:9.00.30729.4926
代码库:file:///C:/windows/WinSxS/amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_08e1a05ba83fe554/msvcm90.dll
----------------------------------------
BulletinBoard.Gadget
程序集版本:1.0.0.5
Win32版本:1.0.0.5
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/BulletinBoard.Gadget.DLL
----------------------------------------
System.Windows.Forms
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PresentationFramework.Aero
程序集版本:3.0.0.0
Win32版本:3.0.6920.4902建于:NetFXw7
代码库:file:///C:/windows/assembly/GAC_MSIL/PresentationFramework.Aero/3.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
System.Xml
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CalendarGadget
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/Calendar/CalendarGadget.dll
----------------------------------------
ClockGadget
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/Clock/ClockGadget.dll
----------------------------------------
即时贴
程序集版本:1.0.0.5
Win32版本:1.0.0.5
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/StickyNote/StickyNote.dll
----------------------------------------
待办事项列表
程序集版本:1.0.0.1
Win32版本:1.0.0.1
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToDoList/ToDoList.dll
----------------------------------------
东芝小工具
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/ToshibaGadgets.dll
----------------------------------------
笔记本电脑中心
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/LaptopCenter.DLL
----------------------------------------
Web缩略图小工具
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/WebThumbnailGadget/WebThumbnailGadget.dll
----------------------------------------
Web缩略图共享
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/WebThumbnailGadget/WebThumbnailShared.DLL
----------------------------------------
Windows7任务栏
程序集版本:1.5.0.0
Win32版本:1.5.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Windows7Taskbar.DLL
----------------------------------------
ToshibaGadgets.resources
程序集版本:1.0.0.0
Win32版本:1.0.0.0
代码库:file:///C:/Program%20Files/TOSHIBA/BulletinBoard/Gadgets/ToshibaGadgets/en/ToshibaGadgets.resources.DLL
----------------------------------------
系统配置
程序集版本:2.0.0.0
Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
代码库:file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
************** JIT调试**************
要启用即时(JIT)调试,请为此使用.config文件
应用程序或计算机(machine.config)必须具有
在system.windows.forms部分中设置的jitDebugging值.
该应用程序还必须通过调试进行编译
已启用.
例如:
< configuration>
< system.windows.forms jitDebugging =" true" />
</configuration>
启用JIT调试后,任何未处理的异常
将被发送到计算机上注册的JIT调试器
您好eruby,
感谢您的信息.
根据您的描述,您已经尝试过此博客中的stpes: http://support.microsoft.com/kb/928228
http://www.vistax64.com/tutorials /86959-access-vista-install-dvd-files.html 此外,您可以转到开始菜单-> 控制面板-> 卸载程序-> 打开或关闭Windows功能以修复.NET Framework:
- 检查是否已选中.NET Framework 3.5.1的复选框,如果已选中,请取消选中该复选框,然后单击确定".
- 再次打开打开或关闭Windows功能窗口,然后选中.NET Framework 3.5.1的复选框,然后单击确定".
我希望这会有所帮助.
最好的问候
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.
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:
- http://support.microsoft.com/kb/928228
- http://www.vistax64.com/tutorials/86959-access-vista-install-dvd-files.html
Also, you could go to Start menu -> Control Panel -> Uninstall a program -> Turn Windows features on or off to repair the .NET Framework:
- Check whether the checkbox of the .NET Framework 3.5.1 has been selected, if so, un-select the check box, click OK;
- 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,
这篇关于如何在Windows 7中修复.netframework 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!