![](/img/trans.png)
[英]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.