ASP.NET 3.5 +系统.Web.路由

发布于 2024-09-13 13:57:36 字数 1048 浏览 8 评论 0原文

我已从 此处 (演示)但是当我将其部署在我的 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.

谁能告诉我 Godady 出了什么问题吗?该示例在本地计算机上运行良好。

I have downloaded sample from here (Demo)but when i deploy it on my Godady server it gives me error

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.

Can any one tell me what's wrong with Godady. This sample work fine on local machine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗藏城府 2024-09-20 13:57:36

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

支持人员回应

感谢您联系在线
支持。

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

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

请告知我们是否可以提供帮助
您以任何其他方式。

客户查询

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

但我收到错误:

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

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

异常详细信息:
系统.安全.安全异常:
请求类型许可
'系统.安全.权限.安全权限,
mscorlib,版本=2.0.0.0,
文化=中立

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

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

I wrote to Godady but confused what to ask them now....

Support Staff Response

Thank you for contacting Online
Support.

This looks like a trust issue.Trust
level refers to permissions set in the
Web.config file that dictate what
operations can and cannot be performed
by Web applications. Our ASP.NET 3.5
shared hosting servers use the default
Medium trust level with the addition
of OleDbPermission, OdbcPermission,
and a less-restrictive WebPermission.
Applications operating under a Medium
trust level have no registry access,
no access to the Windows event log,
and cannot use ReflectionPermission
(but can use Reflection). Such
applications can communicate only with
a defined range of network addresses
and file system access is limited to
the application's virtual directory
hierarchy.

Using a Medium trust level prevents
applications from accessing shared
system resources and eliminates the
potential for application
interference. Adding OleDbPermission
and OdbcPermission allows applications
to use those data providers to access
databases. WebPermission is modified
to allow outbound http and https
traffic.

Please let us know if we can assist
you in any other way.

Customer Inquiry

I have uploaded my site
(http://www.pinchofbliss.com/anything)

but i get error :

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

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

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

For more detail let me write more that
this sample application working fine
on local machine even i placed
application with source code this
sample application can be downloaded
from here
http://chriscavanagh.wordpress.com/2008/03/11/aspnet-routing-goodbye-url-rewriting/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文