System.EnterpriseServices.Wrapper.dll 错误
解析器错误描述:解析a时发生错误 服务此请求所需的资源。请查看以下内容 具体解析错误详细信息并修改您的源文件 适当地。
解析器错误消息:无法加载文件或程序集 “System.EnterpriseServices.Wrapper.dll”或其依赖项之一。
(HRESULT 异常:0x800700C1)来源错误:
第 1 行:<%@ 应用程序代码隐藏="Global.asax.cs" Inherits="PMP.MvcApplication" Language="C#" %>
昨天,我关闭了我的 Windows 7,一个 Windows 更新在那里等待了近一个小时,没有任何进程,然后我关闭了我的笔记本电脑。当我重新打开 Windows 7 并运行 PMP MVC 应用程序时,出现此错误。我完成了待处理的 Windows 更新。这并没有解决问题。
我用谷歌搜索发现应该重新安装.net框架1.1/2.1,我尝试过但没有什么好事发生。这个错误总是在这里。我花了4个小时重新安装VS 2010,但并没有解决问题。
我该如何解决这个问题?
[更新]:
我尝试了一下,
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
发现v6.0A中的gacutil.exe
是0kb。然后将v7.0A
中的文件替换为v6.0A
。这也没有解决问题。
Parser Error Description: An error occurred during the parsing of a
resource required to service this request. Please review the following
specific parse error details and modify your source file
appropriately.Parser Error Message: Could not load file or assembly
'System.EnterpriseServices.Wrapper.dll' or one of its dependencies.
(Exception from HRESULT: 0x800700C1)Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="PMP.MvcApplication" Language="C#" %>
Yesterday, I shut up my Windows 7, an Windows update was pending there without any process for nearly one hour, then I shut my laptop. When I re-opened my Windows 7 and ran the PMP MVC application, this error occurred. I finished that pending windows update. That did not fix the issue.
I googled to find that should re-install .net framework 1.1/2.1, I tried but nothing good happened. This error always here. I spent 4 hrs re-installing VS 2010, but it didn't resolve the issue.
How can I fix this issue?
[Update]:
I tried this,
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" /i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll
to found that gacutil.exe
in v6.0A is 0kb. Then replace the file in v7.0A
to v6.0A
. This didn't solve the issue either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
当我安装了 Windows 更新(和 .Net 4.5.2 更新)但推迟重新启动时,就发生了这种情况。重新启动我的计算机,从而使更新完成修复了该问题。
This happened to me when I had installed windows updates (and .Net 4.5.2 update) but was putting off the restart. Restarting my computer and thus allowing the updates to finalize fixed the issue.
将文件
System.EnterpriseServices.Wrapper.dll
从
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
复制到
C:\WINDOWS\WinSxS\ x86_System.EnterpriseServices_b03f5f7f11d50a3a_2.0.0.0_x-ww_7d5f3790\
Copy the file
System.EnterpriseServices.Wrapper.dll
from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
to
C:\WINDOWS\WinSxS\x86_System.EnterpriseServices_b03f5f7f11d50a3a_2.0.0.0_x-ww_7d5f3790\
我
修复了
System.EnterpriseServices.Wrapper.dll
通过安装 .NET
framework 3.5
。
Framework 3.0
导致了该问题。I fixed the
System.EnterpriseServices.Wrapper.dll
by installing .NET
framework 3.5.
The
Framework 3.0
caused the problem.我在这件事上坚持了好几个星期。尝试移动文件。尝试删除垃圾箱。尝试删除 nuget 文件。尝试重新安装所有 dotnet 框架、所有 dotnet 核心 sdks/运行时。尝试过管理员。尝试重新打开解决方案。重新启动我的电脑 100 次。尝试过 VS 2019 和 2017。
(在 Windows 10 上)
最终唯一有效的是重新安装 Windows。设置->恢复->开始使用 ->保留我的文件。
I was stuck on this for weeks. Tried the file moving. Tried deleting bin. Tried deleting nuget files. Tried reinstalling all dotnet frameworks, all dotnet core sdks/runtimes. Tried Admin. Tried reopening solution. Restarted my computer 100 times. Tried VS 2019 and 2017.
(On Windows 10)
The only thing that ended up working was Reinstalling Windows. Settings -> Recovery -> Get Started -> Keep my files.
删除项目中的bin文件夹,然后重建它。
delete bin folder in project, then rebuilt it.
在一种情况下,System.EnterpriseServices.dll 已被签入版本控制并处于只读状态。只需删除该单独的 dll 并重建即可解决该问题。
In one case, the System.EnterpriseServices.dll had been checked into version control and was read only. Simply deleting that individual dll and rebuilding fixed the issue.
以管理员身份运行 Visual Studio 对我有用
run Visual Studio as Administrator works for me
对我来说,我只需关闭解决方案并重新打开即可。它解决了。
For me , I just close the solution and reopen. Its solved.
我只是停止 IIS Express 并再次运行我的应用程序。
I just stop
IIS Express
and run again my application.老线程,但 gacutil 技巧对我有用。注意 - 以管理员身份打开开发人员命令提示符。
Old thread, but the gacutil trick worked for me. Note - open Developer Command Prompt as Administrator.