2010-04-06 65 views
0

我想包括我在中等信任setting.However運行現場直播微軟AntiXss V1.5庫中,我得到了一個錯誤是這樣的:微軟AntiXSS在中信任:錯誤


Required permissions cannot be acquired. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired. 

我想這在我的開發機器上的完全信任設置,一切正常。像這樣的看法將只在完全信任的配置中運行......有人知道解決方案或解決方法嗎?

回答

0

由於它在封面下工作的方式,它只能完全信任地運行。 AntiXSS團隊意識到這個問題,現在正在開發一個以中等信任度運行的新版本。查看他們的博客(按Blowdarthere

0

您有幾個選項。在大約3周內,我將更新codeplex上的源代碼樹,以便您可以下載最新的源代碼,並且編碼位將以中等信任度工作。然而,Html消毒在可預見的未來將需要充分的信任。

如果您現在需要它,那麼您可以從編碼源中刪除與HTML清理相關的任何內容,重新編譯並且它將在中等信任下工作。