簡體   English   中英

在具有中等信任的共享主機中的果園

[英]orchard in a shared hosting with 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.

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。

最新版本不支持中等信任(並且不支持)。 中等信任打破了很多東西,使代碼更難維護/開發,並且總體上是一種痛苦。

你最好的選擇是改變你現在的主機。 如果他們沒有給你完全的信任,你應該盡快離開那里 - 所有主要的主持人現在都這樣做。 這是唯一的未來解決方案。 否則你會經常遇到一些問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM