带有网络驱动器来源的.Net 4.0和VS2010 [英] .Net 4.0 and VS2010 with sources from network drive

查看:91
本文介绍了带有网络驱动器来源的.Net 4.0和VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

\

\

我们的公司环境严重依赖于映射到本地计算机的网络驱动器.

Our corporate environment rely heavily on network drives mapped to local machine.

在VS2010和.Net Framework 4.0环境中,这会导致各种问题例如指出无法加载文件或程序集'file://\\ fileserver \ references \ ReferencedAssembly.dll"的错误 或其依赖项之一.不支持该操作."

In the VS2010 and .Net framework 4.0 environment, this causes various problems such as an error stating "Could not load file or assembly 'file://\\fileserver\references\ReferencedAssembly.dll' or one of its dependencies. Operation is not supported."

我们试图在machine.config中启用loadFromRemoteSources,这应该使机器范围内的策略更改,但我们仍然发现,为了使用.Net 4 regasm.exe 对于网络驱动器中的程序集,我们需要在regasm.exe.config文件中启用loadFromRemoteSources.同样,为了在VS2010 IDE和命令提示符下查看和运行UnitTest,我们需要在devenv.exe.config,QTAgent32.exe.config中启用loadFromRemoteSources. 和MSTest.exe.config.我们不知道是否还需要更改其他配置文件.

We tried to enable loadFromRemoteSources in the machine.config, which should make a machine-wide policy change, but we still found that in order to use the .Net 4 regasm.exe for assemblies from the network drive, we needed to enable loadFromRemoteSources in the regasm.exe.config file. Also in order to view and run UnitTest in the VS2010 IDE and command prompt, we needed to enable loadFromRemoteSources in devenv.exe.config, QTAgent32.exe.config and MSTest.exe.config. We don't know whether there are other config files we need to change too.

我的第一个问题是:为什么machine.config更改不适用于那些应用程序吗?

My first questions is: Why the machine.config change does not apply to those applications?

此外,< loadFromRemoteSources>不仅影响从Intranet区域加载的程序集,而且还影响从Internet区域加载的程序集.

Also, <loadFromRemoteSources> affects not only assemblies loaded from the Intranet zone, but from the Internet zone as well.

我的第二个问题是:一种指定某些网络驱动器具有完全信任的方式,因此我们不会像以前那样打开对Internet区域的信任 使用loadFromRemoteSources?

My second questions is: Is there a way to specify certain network drive to have full trust so we don't turn on the trust for Internet zone as we did by using the loadFromRemoteSources?

 

推荐答案

Hi,

 

感谢您的问题,我们正在研究这种情况,可能需要一些时间才能回复您.

Thank you for your question, we're doing research on this case, it might take some time before we get back to you.


这篇关于带有网络驱动器来源的.Net 4.0和VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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