(一)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 |
阅读(3759) | 评论(0) | 转发(0) |