2011-03-24 35 views
0

後請檢查​​link得到錯誤在asp.net上傳

我上傳的網站,並上傳後,當我運行應用程序它開始給我這個錯誤:

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

有誰知道如何解決這個問題呢?

回答

3

看起來像這個頁面試圖做什麼,你的服務器不會允許它。您是否處於中等信託託管環境?

+0

不知道託管環境的信任?你能告訴我如何檢查這個信任嗎? – 2011-03-24 11:00:02

+0

是的 - 絕對聽起來像託管問題。 – 2011-03-24 11:13:38

+0

你能告訴我如何解決這個問題嗎? – 2011-03-24 11:31:15

0

請參考以下解決方案herehere,看看它是否有幫助。

+0

給出的解決方案不適合我。 – 2011-03-24 11:45:45

+0

我嘗試但它不適合我。 – 2011-03-24 11:49:29

+0

您是否試過我從Microsoft提供的第一個解決方案? – Hallaghan 2011-03-24 11:55:31