本文介绍了不要放置在GAC组件获得充分的信任?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经听到这个话题矛盾的事实。什么是正确的?

I've been hearing conflicting facts about this topic. What is correct?

推荐答案

您已经听到相互矛盾的观点,因为它是很大的混乱的话题,即使是资深的工程师。总之,简单地将装配在GAC不隐给予充分的信任,但是这可以通过安全策略中指定。

You've been hearing conflicting views because it's a topic of great confusion, even among senior engineers. In short, simply placing an assembly in the GAC does implicitly give it full trust, but this can be overriden via security policy.

EDIT1:我补充一点,一个共同的想法是,如果你不信任的程序集全,你为什么把它放在GAC

Let me add that a common thought is if you don't trust an assembly fully, why are you placing it in the GAC?

EDIT2:我在这里给Michelle Bustamante的博客文章的链接,但你可以在下面的评论看,它不再可用,因此我从这个答案删除了

I had a link in here to a blog post from Michelle Bustamante, but as you can see in the comment below, it's no longer available so I removed it from this answer.

这篇关于不要放置在GAC组件获得充分的信任?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 17:02