首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-01-05 
确实很难:在trust levelMedium下调用第三方控件在Web项目中使用了第三方控件,NetAdvantage和AspNetPage

确实很难:在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的安全运行

热点排行