asp.net - System.EnterpriseServices.Wrapper.dll 错误

标签 asp.net global-asax

<小时/>

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#" %>

<小时/>

昨天,我关闭了我的 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。这也没有解决问题。

最佳答案

当我安装了 Windows 更新(和 .Net 4.5.2 更新)但推迟重新启动时,就发生了这种情况。重新启动我的计算机,从而使更新最终解决该问题。

关于asp.net - System.EnterpriseServices.Wrapper.dll 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2890773/

相关文章:

c# - Web API Controller 中的多个 HttpPost 方法

asp.net - TeamCity 构建任务以自动启动 ASP.NET 网站

c# - session 状态在 Global.asax 的上下文中不可用

c# - 如何从 URL 中获取数据

c# - 如何在 C# 中使用正则表达式从字符串中删除所有不需要的字符?

c# - 有没有更好的方法从 web.config 中获取正确的模块部分?

asp.net - Global.asax.cs 无法访问 App_Code 中的类

asp.net - 在没有(或有虚拟的)角色提供者的情况下启用角色

c# - 非嵌入资源js文件可以访问资源文件(.resx)吗?

.net - ASP.NET 应用程序变量与从 ConfigurationSettings.AppSettings 读取