【问题标题】:ASP.NET 3.5 + System.Web.RoutingASP.NET 3.5 + System.Web.Routing
【发布时间】:2010-08-12 00:00:54
【问题描述】:

我已经从here (Demo) 下载了示例,但是当我将它部署到我的 Godady 服务器上时,它给了我错误

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.

谁能告诉我Goddy出了什么问题。此示例在本地机器上运行良好。

【问题讨论】:

    标签: asp.net asp.net-3.5 url-routing asp.net-routing


    【解决方案1】:

    我写信给 Godady,但不知道现在该问他们什么......

    支持人员回应

    感谢您联系在线 支持。

    这看起来像是一个信任问题。信任 级别是指在 指示什么的 Web.config 文件 可以执行和不可以执行的操作 通过 Web 应用程序。我们的 ASP.NET 3.5 共享主机服务器使用默认 中等信任等级,加法 OleDbPermission、OdbcPermission、 和限制较少的 WebPermission。 在介质下运行的应用程序 信任级别没有注册表访问权限, 无法访问 Windows 事件日志, 并且不能使用 ReflectionPermission (但可以使用反射)。这样的 应用程序只能与 定义的网络地址范围 并且文件系统访问仅限于 应用程序的虚拟目录 层次结构。

    使用中等信任级别可防止 应用程序访问共享 系统资源,并消除了 应用潜力 干涉。添加 OleDbPermission 并且 OdbcPermission 允许应用程序 使用这些数据提供者访问 数据库。 WebPermission 被修改 允许出站 http 和 https 交通。

    如果我们可以提供帮助,请告诉我们 你以任何其他方式。

    客户查询

    我已经上传了我的网站 (http://www.pinchofbliss.com/anything)

    但我得到错误:

    ================================================ ========================

    描述:应用程序尝试 执行不允许的操作 安全策略。授予这个 申请所需的权限 请联系您的系统 管理员或更改 应用程序的信任级别 配置文件。

    异常详情: System.Security.SecurityException: 请求类型的许可 'System.Security.Permissions.SecurityPermission, mscorlib,版本=2.0.0.0, 文化=中性

    ================================================ ==========================

    更多细节让我写更多 这个示例应用程序工作正常 即使我放置在本地机器上 带有源代码的应用程序 可以下载示例应用程序 从这里 http://chriscavanagh.wordpress.com/2008/03/11/aspnet-routing-goodbye-url-rewriting/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-13
      • 1970-01-01
      • 1970-01-01
      • 2010-12-17
      • 2011-10-22
      • 2010-10-11
      • 2016-04-12
      • 1970-01-01
      相关资源
      最近更新 更多