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?
Resources
class, but I changed it toProperties.Resources.xxxxx
and the issues were fixed. – Intumescence