您的位置:程序门 -> .net技术 -> asp.net



确实很难:在trust level="medium"下调用第三方控件


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


确实很难:在trust level="medium"下调用第三方控件
发表于: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)技术

大家如果有什么想法,一起交流一下,多多指教哈
发表于:2007-09-14 11:23:301楼 得分:0
sf
help   up
发表于:2007-10-20 10:47:132楼 得分:0
infragistics.netadvantage.2007.vol.3  
infragistics   netadvantage   sources   and   key,   add   my   qq:   531811972  
msn:components2007@hotmail.com  
my   email:components2007@hotmail.com  
发表于:2007-10-20 13:28:223楼 得分:0
用allowpartiallytrustedcallers=true也只能以trust   level="medium"的方式运行,只能满足medium的安全运行


快速检索

最新资讯
热门点击