在具有中等信任的共享主机中的果园

时间:2013-02-22 09:35:34

标签: security hosting orchardcms medium-trust

我已将基于Orchard 1.2.41的网站安装在具有中等信任度的共享主机上。

该网站无效,抱怨臭名昭着的错误:

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.

我试图添加

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

但无济于事。 Web服务器告诉我web.config无效。可能是媒介信任被媒体锁定。

我已经在网上看到,果园被编写为在中等信任环境中工作,只是性能损失。现在,我只想让我的公司网站启动并运行。

任何线索? 谢谢你,grazie。 米。

1 个答案:

答案 0 :(得分:4)

最新版本不支持中等信任(并且不支持)。中等信任打破了很多东西,使代码更难维护/开发,并且总体上是一种痛苦。

您最好的选择是改变您当前的主机。如果他们没有给你完全的信任,你应该尽快离开那里 - 所有主要的主持人现在都这样做。这是唯一的未来解决方案。否则你会经常遇到一些问题。

相关问题