Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metadata file 'System.EnterpriseServices.Wrapper.dll' could not be opened -- 'Error importing module 'System.EnterpriseServices.Wrapper.dll'

OS: Windows 8.1

Visual Studio Premium 2013

I have a complex MVC application that I have been running for years. I am able to run the application in debug without issues. However, just this afternoon, when I tried to publish the application for deployment I receive this error:

Error 8 Metadata file 'f:\Documents\Visual Studio 2013\GIT\Maloha\site\bin\System.EnterpriseServices.dll' could not be opened -- 'Error importing module 'System.EnterpriseServices.Wrapper.dll' of assembly 'f:\Documents\Visual Studio 2013\GIT\Maloha\site\bin\System.EnterpriseServices.dll' -- The system cannot find the file specified. ' F:\Documents\Visual Studio 2013\GIT\Maloha\site\CSC site

I have restarted my computer. I have tried to clean and rebuild the application.

What would cause this to suddenly appear? How do I fix it? I need to be able to publish the application.

UPDATE

I uninstalled .NET 3.5 and reinstalled it. I can now see the file in the specified folder, but I still get the error.

like image 350
davids Avatar asked Nov 07 '14 20:11

davids


2 Answers

I had a similar issue. I have no idea if my solution will work for you, but here is what someone told me to do:

Delete the files from the bin folder so they can be rebuilt with the next publication.

I have no idea why it worked, but I was able to use the solution after that.

Unfortunately, I can't provide any additional insights or directions beyond this.

like image 180
user2639740 Avatar answered Nov 14 '22 20:11

user2639740


Clean the project or delete the files from bin folder and then rebuild it again, it happened with me twice and that was the solution which solved my problem

like image 27
amal50 Avatar answered Nov 14 '22 22:11

amal50