集不允许部分受信任呼叫者使用自定义解析时,呼叫者、不允许、自定义、部分

2023-09-06 18:23:28 作者:安分坏坏男人゛

我在Intranet上要求到Intranet(在不同的文件夹),另一个库,然后调用它安装在本地计算机GAC微软HPC API的程序集。

I have an assembly on the intranet calling to another library on the intranet (in a different folder) which then calls Microsoft HPC API which is installed in the local machine GAC.

的组件,发现使用在 MS的KB 837908 并在此过程中一个SecurityException的方法中的库提高那集不允许部分受信任的调用方(即组件是HPC API)

The assembly finds the library using the method in MS KB 837908 and in the process a SecurityException is raised "That assembly does not allow partially trusted callers" (That assembly is the HPC API)

但是,如果我移动图书馆在同一文件夹的内联网作为执行组件(即没有必要再调用自定义冲突解决)这一切工作正常。

However if I move the library in the same folder on the intranet as the executing assembly (ie. there is no need to call the custom resolver) it all works fine.

我怎样才能改善自定义冲突解决,以避免这种安全例外?

How can I improve the custom resolver to avoid this security exception?

推荐答案

href="http://stackoverflow.com/users/17034/hans-passant">汉斯帕桑特可提供