是需要ASP.NET MVC框架应用什么信任级别? [英] What application trust level is need for ASP.NET MVC framework?

查看:149
本文介绍了是需要ASP.NET MVC框架应用什么信任级别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图部署在五月简单的asp.net mvc的frameworkd应用程序共享的托管和我得到埃罗是这样的:

i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting and i get erro like this:

安全例外
说明:应用程序试图执行不是由安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系或更改配置文件中的应用程序的信任级别。

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.

异常详细信息:System.Security.SecurityException:申请类型的权限'System.Security.Permissions.ReflectionPermission,mscorlib程序,版本= 2.0.0.0,文化=中性公钥= b77a5c561934e089'失败

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

源错误:

当前Web请求的执行过程中生成了未处理的异常。有关异常的来源和位置信息可以使用下面的异常堆栈跟踪信息确定。

http://test.pakabink.lt/

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.
http://test.pakabink.lt/

在我的控制面板我正在塞汀ASP.NET 2.0完全信任。我要问什么服务器管理员更改?

In my control panel i am seting "ASP.NET 2.0 Full Trust". What i need to ask for server administrator to change?

推荐答案

您应该能够仓部署和运行在中等信任的MVC框架。有一种可能性是有,该托管公司已经拿走了,但它应该工作的一些其他的许可。你用默认的MVC项目测试?如果您正在使用其他组件(结构图,例如),这可能是导致错误。

You should be able to bin deploy and run the MVC framework in medium trust. There is a possibility that there is some other permission that the hosting company has taken away but it should work. Are you testing with the default MVC project? If you are using other components (Structure Map, for example), that may be causing the error.

查看斌部署ASP.NET MVC 从菲尔哈克有关部署和所需的信任级别。

Check out Bin Deploying ASP.NET MVC from Phil Haack about deploying and the required trust level.

这篇关于是需要ASP.NET MVC框架应用什么信任级别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆