[英]Attempt by security transparent method 'System.Web.WebPages.Administration.SiteAdmin.RegisterAdminModule()' to access security critical
I am getting the following error on an Amazon EC2 Instance: 我在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.
There is nothing on the internet for this particular error message. 互联网上没有任何内容可以显示此特定错误消息。 I am running an ASP.NET MVC 5 application. 我正在运行ASP.NET MVC 5应用程序。 I am suspicious of my Amazon EC2 instance to a degree because I remember reading something about Amazon AWS security lock downs of .NET reflection. 我对我的Amazon EC2实例有一定程度的怀疑,因为我记得读过有关.NET反射的亚马逊AWS安全锁定的一些内容。
Any guidance would be greatly appreciated. 任何指导将不胜感激。
So the issue had nothing to do with my Amazon EC2 Instance. 所以这个问题与我的Amazon EC2实例无关。
This issue was fixed by checking the box "Remove additional files at destination" in my Publish profile: 通过选中我的发布配置文件中的“删除目标上的其他文件”框来解决此问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.