Windows10修复“System.EnterpriseServices.Wrapper.dll” > System.IO.FileNotFoundException: 系统找不到指定的文件

System.IO.FileNotFoundException: 未能加载文件或程序集“System.EnterpriseServices.Wrapper.dll”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.EnterpriseServices.Wrapper.dll” ---> System.IO.FileNotFoundException: 未能加载文件或程序集“System.EnterpriseServices.Wrapper.dll”或它的某一个依赖项。系统找不到指定的文件。
文件名:“System.EnterpriseServices.Wrapper.dll” ---> System.IO.FileNotFoundException: 系统找不到指定的文件。 (异常来自 HRESULT:0x80070002)

在 System.EnterpriseServices.ContextUtil.get_IsInTransaction()
在 System.Data.Common.ADP.IsSysTxEqualSysEsTransaction()
在 System.Data.Common.ADP.NeedManualEnlistment()

当出现这个问题的时候 ,此文件夹内容是空的

C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\

解决方法:

  1. 将(如图).net framework 3.5(包含.net2.0 和3.0)的勾去掉, 完成后会要求重启电脑
  2. 重新打开原有exe程序,系统会提示需要安装.net,安装完成后不必重启,打开exe即可

原文地址:https://www.cnblogs.com/wujiangling/p/15671658.html