分享

写回答

发帖

[提问] 求救!!!.net 程序遇到Security Exception 问题该如何解决啊?

GoDaddy GoDaddy 6976 人阅读 | 8 人回复

发表于 2008-8-30 20:53:52 | 显示全部楼层 |阅读模式

我的.net程序遇到如下问题改如何解决?
Server Error in '/stylerain' 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:

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.  

Stack Trace:


[SecurityException: That assembly does not allow partially trusted callers.]
   Shopping.Framework.FWebBase.OnLoad(EventArgs e) +0
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




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

回答|共 8 个

uv119

发表于 2008-8-30 20:59:27 | 显示全部楼层

本机和本人托管的服务器正常运行,但是传到GoDaddy空间就出了这问题,据说是:godaddy的虚拟主机好像真的是设置了 trust level="Medium" 的问题。不知道没有谁碰过这样的问题?

michael6

发表于 2008-9-29 13:24:57 | 显示全部楼层

我也碰到了这些问题 请问如何解决。我买的空间是:Deluxe Plan 谢谢 我使用了很普通的几个dll

Intelligencia.UrlRewriter.dll
log4net.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll
谁能告诉我一下 如何解决,或者更换空间,非常感谢

michael6

发表于 2008-10-4 23:39:21 | 显示全部楼层

只好顶一下了。

add.c

发表于 2008-10-6 10:01:36 | 显示全部楼层

回复 2# 的帖子

是设置了trust level="Medium
你联系下godaddy客服看看

Reason

发表于 2008-10-19 21:32:24 | 显示全部楼层

同类问题  顶一下 楼主 解决了吗

add.c

发表于 2008-10-20 10:43:08 | 显示全部楼层

回复 6# 的帖子

godaddy的windows主机有些组件不支持,还有他的信任模式是中等trust level="Medium

yoker.wu

发表于 2011-10-11 17:12:38 | 显示全部楼层

你们最后都是这么解决的呀,我现在也遇到这个问题了。不知道怎么搞了!
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-10-11 17:26:39 | 显示全部楼层

回复 8# 的帖子

主机不支持的话,不能解决,只能考虑换程序或者主机
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则