Attempt by ‘System.Web.Mvc.PreApplicationStartCode.Start()’ to critical method ‘System.Web.WebPages.Razor.PreApplicationStartCode.Start()’ failed

I think the issue has been solved, but if not, use this package from Nuget:

Install-Package Microsoft.AspNet.Mvc -Version 5.0.0

I have wasted a day for this error but this single line has done the work for me

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)