Question

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

Was it helpful?

Solution

If I had to take a shot in the dark based on your environment being Medium Trust, I am going to guess reflection is your issue. Combres uses Fasterflect which is a great reflection library. That being said, Medium Trust applications are not granted the ReflectionPermission so this would throw a SecurityException when attempting to run the code. If you have any details on the SecurityException, could likely confirm if that is indeed the case.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top