[英]Attempt by security transparent method to access security critical method failed
[英]Attempt by security transparent method 'System.Web.WebPages.Administration.SiteAdmin.RegisterAdminModule()' to access security critical
我在Amazon EC2实例上收到以下错误:
Attempt by security transparent method 'System.Web.WebPages.Administration.SiteAdmin.RegisterAdminModule()' to access security critical method 'System.Web.WebPages.ApplicationPart..ctor(System.Reflection.Assembly, System.String)' failed.
互联网上没有任何内容可以显示此特定错误消息。 我正在运行ASP.NET MVC 5应用程序。 我对我的Amazon EC2实例有一定程度的怀疑,因为我记得读过有关.NET反射的亚马逊AWS安全锁定的一些内容。
任何指导将不胜感激。
所以这个问题与我的Amazon EC2实例无关。
通过选中我的发布配置文件中的“删除目标上的其他文件”框来解决此问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.