2011-03-24 42 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