.NET Framework 4.0 mysteriously loses track of System.EnterpriseServices
Posted
by Lorin Thwaits
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Lorin Thwaits
Published on Sun, 21 Mar 2010 12:12:17 GMT
Indexed on
2010/03/21
12:21 UTC
Read the original article
Hit count: 739
The GAC in .NET 4.0 is cut into two parts now -- one half for .NET Framework 2.0 stuff, and the other for v4.0 stuff. When compiling any project, targeting .NET 2.0, 3.5, or what have you, this annoying error may pop up:
Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
In that case, open a run box and perform this copy command:
xcopy %ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.EnterpriseServices.dll %windir%\Microsoft.NET\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a /e
This reconstructs the proper portion of the GAC for that one missing file.
© Geeks with Blogs or respective owner