将原来基于 VS 05 的 AjaxControlToolkit 升级到 VS 08 beta 2,利用其  multi-targeting 依然选择 .NET 2.0,编译正常通过,出现了错误:
The current trust level does not allow use of the 'compilerOptions' attribute.
(当前的信任级别不允许使用“compilerOptions”属性。

最简单的方法是:修改 web.config 的 trust level 为 Full
ERROR:当前的信任级别不允许使用“compilerOptions”属性  <system.web>
ERROR:当前的信任级别不允许使用“compilerOptions”属性    
<!--<trust level="Medium"/>-->
ERROR:当前的信任级别不允许使用“compilerOptions”属性    
<trust level="Full"/>
ERROR:当前的信任级别不允许使用“compilerOptions”属性    
<pages>
ERROR:当前的信任级别不允许使用“compilerOptions”属性      
<controls>
关于此参考:在 ASP.NET 中配置代码访问安全性

关于VS 05 升级到 08 中相关主题:Medium Trust and Visual Studio codename 'Orcas' Beta 2

相关文章:

  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-11-06
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-04-10
相关资源
相似解决方案