0

Im just finishing off deploying my asp.net mvc 2 website up to RackSpace cloudsites.

Im currently just getting an error saying: System.Security.SecurityException: Request failed. 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.

This is occurring on the following line: <%= Combres.WebExtensions.CombresLink("siteJs")%>

So it is when Combres is trying to access the SiteJs link in the App_Data/Combres.xml file. Im transferring this site over from Discountasp where it was working without issue.

Any ideas on what the problem and fix would be?

Thanks in advance

4

1 回答 1

1

如果我不得不根据您的环境为中等信任度在黑暗中拍摄,我猜想反射是您的问题。Combres 使用Fasterflect,这是一个很棒的反射库。话虽如此,Medium Trust 应用程序没有被授予ReflectionPermission,因此在尝试运行代码时会抛出 SecurityException。如果您有任何有关 SecurityException 的详细信息,可能会确认是否确实如此。

于 2010-11-18T23:29:58.953 回答