尝试由安全透明的方法“System.Web.WebPages.Administration.SiteAdmin.RegisterAdminModule()”访问安全关键性。

3

我在亚马逊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实例持怀疑态度,因为我记得曾经读过有关Amazon AWS对.NET反射的安全锁定的信息。

非常感谢您提供任何指导。

1个回答

8
所以,这个问题与我的Amazon EC2实例无关。
通过在我的发布配置文件中勾选“删除目标位置的附加文件”复选框解决了这个问题: enter image description here

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接