简体   繁体   中英

Missing Referenced Assemblies Folder for .NET 4.0

It seems that starting with .NET 3.0, Microsoft moved some common assemblies to

C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\xxx

in order to support their effort to split out the CLR 2.0 and CLR 4.0 GACs (having also added

C:\\%windir%\\Microsoft.NET\\assembly ).

However, while I have both

C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\xxx

and

C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.0

on my development machine, the latter does not exist on a server where I just installed .NET 4.0. A WCF project being deployed there references some common DLLs from this folder and cannot find them.

What am I doing wrong? Should I change these references to the new 4.0 GAC explicitly? Why does this folder not exist on the server?

Reference Assemblies folder is used with Visual Studio. While the actual deployed application will use the GAC in c:\\Windows\\Microsoft.Net\\Assembly. I am assuming you didn't install Visual Studio on your server, therefore you wouldn't have the Reference Assemblies Folder.

If you hosting WCF on the server, you need to ensure you installed .NET 4.0 Full Framework and not just the client framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM