在Web项目中使用了第三方控件,NetAdvantage和AspNetPager,在trust level="Full"的情况下都运行良好,但购买的虚拟空间一般都设置成trust level="Medium",此时则会出现“System.Security.SecurityException: That assembly does not allow partially trusted callers”的异常。我花了两天时间在网上查找资料,得到一些提示,
1.设置 AllowPartiallyTrustedCallers  
2.使用沙箱(Sandboxing)技术那位DX知道,给支个招哈