Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1203873
  • 博文数量: 49
  • 博客积分: 10237
  • 博客等级: 上将
  • 技术积分: 2764
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-02 16:19
个人简介

满随天外云卷云舒 静观庭前花开花落

文章分类

全部博文(49)

文章存档

2013年(18)

2012年(9)

2011年(1)

2010年(5)

2009年(3)

2008年(13)

分类: WINDOWS

2010-12-06 11:26:42

(一)A corrupted install of .NET 2.0 could be the culprit. Please try the following:

1. Uninstall .NET Framework 2.0 Service Pack 1.

2. Uninstall .NET Framework 2.0.

3. Re-install .NET Framework 2.0.

4. Re-install .NET Framework 2.0 Service Pack 1.

5. Reboot your system.

This worked for me after encountering the error "Could not load file or assembly 'System.
EnterpriseServices.Wrapper.dll' or one of its dependencies" when attempting to use System.Data.OleDb with a MS Access database.

I believe the problem is caused after install of additional Microsoft patches and updates but cannot confirm which ones corrupt the .NET Framework install.

(二)
- Remove the "Microsoft .NET Framework 2.0 Service Pack 2" or your version with the clean up utility.


- Use regedit to remove the following two keys:

* HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727

* HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0



- start NetFx20SP2_x86.exe 
阅读(3728) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~