我已经写了一个ASP.NET WebForms应用程序,它使用了ASP.NET AJAX Toolkit。我已将MultiView控件放到Web窗体上,并且在Vista下运行时它工作正常。那么,我不得不更换我的机器(高清失败),我去了Windows 7旗舰版。我尝试从系统中复制ASP.NET应用程序(在它最终失败之前)并将它放到Windows 7机器上。我可以调出应用程序,转到所有页面,但带有这些控件的页面。当我这样做时,出现以下错误:ASP.NET AJAX工具包的安全异常
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
发生了什么事?我如何解决它?
WOW,有趣!我必须检查一下,谢谢Kevin G.因为这个更改是针对默认应用程序池的,所以我认为它会影响所有的ASP.NET应用程序,对吗? – Rod 2010-03-09 20:28:21
这似乎已经奏效!你是怎么找到的? – Rod 2010-03-10 03:50:55
大量的挖掘/试错。 ;) – 2010-03-24 17:33:39