| 发表于:2007-09-14 10:55:06 楼主 |
在web项目中使用了第三方控件,netadvantage和aspnetpager,在trust level= "full "的情况下都运行良好,但购买的虚拟空间一般都设置成trust level= "medium ",此时则会出现“system.security.securityexception: that assembly does not allow partially trusted callers”的异常。 我花了两天时间在网上查找资料,得到一些提示, 1.设置 allowpartiallytrustedcallers 2.使用沙箱(sandboxing)技术 大家如果有什么想法,一起交流一下,多多指教哈 |
|
|
|
|