分享

写回答

发帖

Godaday 安全权限问题

GoDaddy GoDaddy 1437 人阅读 | 1 人回复

发表于 2007-7-16 16:41:45 | 显示全部楼层 |阅读模式

今天,我又发现godaddy另一个应用问题,

Server Error in '/' Application.
--------------------------------------------------------------------------------
Security Exception
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: That assembly does not allow partially trusted callers.
Source Error:

[No relevant source lines]

Source File: App_Web_6dfgywui.2.cs    Line: 0
Stack Trace:

[SecurityException: That assembly does not allow partially trusted callers.]
   Cai.NewPage.Page_Load(Object sender, EventArgs e) +0
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.member_default_aspx.ProcessRequest(HttpContext context) in App_Web_6dfgywui.2.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42  


我认为解决方法是 解救办法是联络你的空间商,问他们有没有把ASP。NET 的TRUST LEVEL 更改。
DEFAULT 的 TRUST LEVEL 是 FULL 的。
空间商为了保护自己,很多时候都会减低这TRUST LEVEL。

看看大家的看法,还有,如果要写信给godaddy的话,应该如何写比较好~~ 谢谢~~

回答|共 1 个

大漠孤狼

发表于 2007-7-16 18:52:26 | 显示全部楼层

这个联系godaddy问一下吧,没用过.net
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则