缺少 .NET 4.0 的引用程序集文件夹 [英] Missing Referenced Assemblies Folder for .NET 4.0

查看:20
本文介绍了缺少 .NET 4.0 的引用程序集文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎从 .NET 3.0 开始,Microsoft 将一些常用程序集移至

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

C:Program FilesReference AssembliesMicrosoftFrameworkxxx

为了支持他们拆分 CLR 2.0 和 CLR 4.0 GAC 的努力(还添加了

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

C:\%windir%Microsoft.NETassembly).

然而,虽然我两者都有

C:Program FilesReference AssembliesMicrosoftFrameworkxxx

C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0

在我的开发机器上,后者在我刚刚安装了 .NET 4.0 的服务器上不存在.部署在那里的 WCF 项目引用了此文件夹中的一些常见 DLL,但找不到它们.

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.

我做错了什么?我是否应该明确更改对新 4.0 GAC 的这些引用?为什么服务器上没有这个文件夹?

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 文件夹与 Visual Studio 一起使用.而实际部署的应用程序将使用 c:WindowsMicrosoft.NetAssembly 中的 GAC.我假设您没有在服务器上安装 Visual Studio,因此您不会有参考程序集文件夹.

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

如果您在服务器上托管 WCF,则需要确保安装了 .NET 4.0 完整框架,而不仅仅是客户端框架.

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

这篇关于缺少 .NET 4.0 的引用程序集文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆