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

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

问题描述

看来,首先是.NET 3.0中,微软提出了一些共同的组件,以

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

C:\ Program Files文件\参考大会\微软\框架\ XXX

为了支持他们的努力,打出CLR 2.0和CLR 4.0 GACS(已还增加了

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 \组装)。

不过,虽然我有两个

C:\ Program Files文件\参考大会\微软\框架\ XXX

C:\ Program Files文件\参考大会\微软\框架\ .NETFramework \ V4.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?

推荐答案

引用程序集文件夹用于与Visual Studio。而实际部署的应用程序将使用GAC在C:\ WINDOWS \ Microsoft.Net \大会。我假设你没有在服务器上安装Visual Studio,所以你不会有引用程序集文件夹。

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.

如果您在服务器上托管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天全站免登陆