System.EnterpriseServices.Wrapper.dll error

眉间皱痕 提交于 2019-12-28 14:52:11

问题



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.


回答1:


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\




回答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.




回答3:


I fixed the

System.EnterpriseServices.Wrapper.dll

by installing .NET framework 3.5.

The Framework 3.0 caused the problem.




回答4:


delete bin folder in project, then rebuilt it.




回答5:


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.




回答6:


run Visual Studio as Administrator works for me




回答7:


For me , I just close the solution and reopen. Its solved.




回答8:


I just stop IIS Express and run again my application.



来源:https://stackoverflow.com/questions/2890773/system-enterpriseservices-wrapper-dll-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!