Failed to load System.EnterpriseServices file or assembly.

I am trying to read asp.net mvc, I have never used asp.net before, but are familiar with normal C # development.

Recently installed, fully patched Windows XP Home.
Updated upgrade to SP1 Visual Studio 2008 Pro.

Started a new project, selected by ASP.NET MVC Web Application, target structure is 3.5

I ended up in F5 and I got:
"Failed to load the file or assembly System.EnterpriseServices"

Exact wording in Swedish:

[FileNotFoundException: Det går inte att hitta filen. (Undantag från HRESULT: 0x80070002)]
[FileNotFoundException: Det går inte att läsa in filen eller sammansättningen System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a eller ett av dess beroenden. Det går inte att hitta filen.]

Adding a reference to System.EnterpriseServices in my project does not work.
A quick google suggested copying this Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll file to% WINDOWS% / assembly, but that didn't work either.

Any suggestions?

Found the answer, I added it to the GAC with gacutil.

C: \ WINDOWS> "C: \ Program \ Microsoft SDK \ Windows \ v6.0A \ bin \ gacutil.exe" / i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll

+3
source share
2 answers

Found the answer, I added it to the GAC with gacutil.

C: \ WINDOWS> "C: \ Program \ Microsoft SDK \ Windows \ v6.0A \ bin \ gacutil.exe" / i Microsoft.NET/Framework/v2.0.50727/System.EnterpriseServices.dll

+5
source

Nifle , . , . asp.net. . . asp.net, .

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles

,

C:\WINDOWS\Microsoft.NET\Framework\<Framework Version>\ASP.NETWebAdminFiles
+2

Source: https://habr.com/ru/post/1709367/


All Articles