当前位置: 代码迷 >> ASP.NET >> 确实很难:在trust level="Medium"下调用第三方控件解决方案
  详细解决方案

确实很难:在trust level="Medium"下调用第三方控件解决方案

热度:6392   发布时间:2013-02-25 00:00:00.0
确实很难:在trust level="Medium"下调用第三方控件
在Web项目中使用了第三方控件,NetAdvantage和AspNetPager,在trust   level= "Full "的情况下都运行良好,但购买的虚拟空间一般都设置成trust   level= "Medium ",此时则会出现“System.Security.SecurityException:   That   assembly   does   not   allow   partially   trusted   callers”的异常。

我花了两天时间在网上查找资料,得到一些提示,
1.设置   AllowPartiallyTrustedCallers    
2.使用沙箱(Sandboxing)技术

大家如果有什么想法,一起交流一下,多多指教哈

------解决方案--------------------------------------------------------
Infragistics.NetAdvantage.2007.Vol.3 
Infragistics NetAdvantage Sources and key, add my QQ: 531811972 
MSN:components2007@hotmail.com 
my email:components2007@hotmail.com
------解决方案--------------------------------------------------------
用AllowPartiallyTrustedCallers=true也只能以trust level="Medium"的方式运行,只能满足medium的安全运行
  相关解决方案