Reputation: 188
In order to set up a website running on Orchard CMS,I extracted the contents of the zip file downloaded from http://www.orchardproject.net (version 1.6) and uploaded them to my host.However,After trying to view the site on the browser,I got the following exception:
Inheritance security rules violated while overriding member: 'log4net.Util.ReadOnlyPropertiesDictionary.GetObjectData(System.Runtime.Serialization.Ser>ializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility >of the overriding method must match the security accessibility of the method being >overriden.
Having done a lot of search online,I realized that the problem was due to the fact that an Orchard website needs to be run in a Full trust mode on the server.But again the problem is that my host won't allow such a thing for security concerns. So,I wonder if someone know if I get the issue sorted out by making a change to the source code of Orchard project like setting a security attribute in the assembly file or anything like that as described here: Inheritance security rules violated while overriding member - SecurityRuleSet.Level2
Thanks in advance,
Upvotes: 1
Views: 376
Reputation: 17814
It is a conscious decision from the team not to support partial trust any more. Microsoft doesn't recommend partial trust any more.
Upvotes: 1