内容简介:确切知道的唯一方法是运行它并找出答案.翻译自:https://stackoverflow.com/questions/14676964/compiling-mvc-application-for-medium-trust-level
我正在尝试将ASP.NET MVC4站点部署到HostGator共享 Windows
主机.当他们的技术支持告诉我必须编译我的应用程序以获得中等安全性时,我遇到了一些麻烦.
据我所知,设置应用程序的信任级别的唯一方法是设置<trust level =“Medium”>在machine.config或web.config中.假设这个我错了,是否有另一种方法来编译我的中等信任应用程序?
基于我最初的假设,以及我在 this page 上找到的信息,我将信任级别添加到了我的web.config:
By default, Web applications run with full trust and have unrestricted permissions. To modify code access security trust levels in ASP.NET, you have to set a switch in the Machine.config file or the application-level Web.config file and configure the application as a partial-trust application. I put the trust level in my web.config and get this error message form the host: Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file.
然而HostGator仍然坚持我编译中等信任,有没有人对我这个主题有任何建议?
确切知道的唯一方法是运行它并找出答案.
翻译自:https://stackoverflow.com/questions/14676964/compiling-mvc-application-for-medium-trust-level
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Software Design 中文版 01
[日] 技术评论社 / 人民邮电出版社 / 2014-3 / 39.00
《Software Design》是日本主流的计算机技术读物,旨在帮助程序员更实时、深入地了解前沿技术,扩大视野,提升技能。内容涵盖多平台软件开发技巧、云技术应用、大数据分析、网络通信技术、深度互联时代下的移动开发、虚拟化、人工智能等最前沿实践性讲解。以人脑思维模式,激发计算机操控的无限可能;以软件开发技巧,挖掘系统与硬件的最大价值。 《Software Design 中文版 01》的主题为......一起来看看 《Software Design 中文版 01》 这本书的介绍吧!