Question

I've installed our Orchard 1.2.41 based website on a shared hosting with medium trust.

The site won't work, complaining with the infamous error:

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

I've tried to add

< trust level="Full" originUrl="" />

but to no avail. The web server tells me that the web.config is invalid. Probably the medium trust is locked by the hoster.

I've read on the web that orchard is written to work on medium trust environments, only with a performance loss. For now, I just want to get my company site up and running.

any clue? thank you, grazie. m.

Was it helpful?

Solution

Latest versions do not support medium trust (and won't do). Medium trust break lots of things, makes the code much harder to maintain/develop and is a pain in general.

Your best bet would be to change your current hoster. If they don't give you full trust, you should run away from there asap - all major hosters do that now. It's the only futureproof solution. Otherwise you'll constantly run into some issues.

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