Update: same for mvc 4 to mvc 5.
I started a new mvc 4 project and migrated an mvc 3 project in it (controllers/models/scripts etc). While everything compiles now i get the following error:
Attempt by security transparent method 'WebMatrix.WebData.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' failed.
I can't find anything on the web with this error. The error hits before getting into the application start.
I tried reinstalling all assemblies with nuget, putting a 'clean' web.config to no avail.
Anyone had this problem before?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…