发新话题
打印

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

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

我的.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

TOP

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

TOP

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

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

TOP

只好顶一下了。

TOP

回复 2# 的帖子

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

TOP

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

TOP

回复 6# 的帖子

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

TOP

发新话题