Stymied by ASP.NET Compilation Error CS0009

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:WINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll’
could not be opened — ‘Error
importing module
‘System.EnterpriseServices.Wrapper.dll’
of assembly
‘c:WINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll’
— The system cannot find the file specified. ‘

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

This seemed to fix it:

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


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x