本文介绍了在C#net中使用两个名称调用程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都可以清楚地解释这一点吗?

我已经创建了名称为(ClassLibrary1.dll)的程序集,并创建并指定了Strong名称,到目前为止一切都很完美,

其实我的要求是
(1)创建一个程序集(testassembly1),该程序集可访问网页www.google.com
(2)为testassembly1创建一个强名称.
(3)创建一个应用程序域(具有默认权限)
(4)使用默认特权将testassembly1加载到应用程序域中.(5)加载另一个testassembly1实例(使用其他名称?).假设我们将其称为testassembly2,没有访问Internet或Intranet的特权.
(6)显示testassembly1和testassembly2的强名称的不同组成部分.
(7)在访问网页之前,请在您的代码中要求具有Internet和Intranet访问权限.如果异常,请打印错误.


问题到了5点,有人可以帮我吗

在此先感谢.

Hi
Can anybody explain this point clearly

i had created the assembly with the name as (ClassLibrary1.dll), i had created and assigned the Strong name,everthing is perfect upto now,

actually my requirement is
(1) Create one assembly (testassembly1) that accesses a web page www.google.com
(2) Create a strong name for testassembly1.
(3) Create an application domain (with default permissions)
(4) Load testassembly1 into the application domain with default privileges.
(5) Load another instance of testassembly1 (under different name?). Say we call it testassembly2 with no privileges to access internet or intranet.
(6) Display the different components of the strong name of testassembly1 and testassembly2.
(7) Before accessing the webpage, in your code, demand the permissions for internet and intranet access. If exception, print an error.


problem arrised at 5th point , can anybody help me please

Thanks in Advance.

推荐答案


这篇关于在C#net中使用两个名称调用程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 18:35