Stymied by ASP.NET Compilation Error CS0009

僤鯓⒐⒋嵵緔 提交于 2019-12-31 04:40:07

问题


I'm getting error below when I debug my ASP.NET MVC app.

Any thoughts on how I could solve this?

Any idea how the problem would have occurred in the first place? I promise you I didn't go randomly deleting dll's from deep within protected directories on my system.

Server Error in '/' Application.

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0009: Metadata file 'c:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll' could not be opened -- 'Error importing module 'System.EnterpriseServices.Wrapper.dll' of assembly 'c:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll' -- The system cannot find the file specified. '


回答1:


This seemed to fix it:

Add/Remove Programs -> .NET Framework 3.5SP1 -> Repair



来源:https://stackoverflow.com/questions/2011134/stymied-by-asp-net-compilation-error-cs0009

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