Attempt by security transparent method ‘WebMatrix.WebData.PreApplicationStartCode.Start()’

For me this error was because I did NOT have Microsoft.AspNet.WebHelpers installed after updating from MVC 4 to MVC 5. It was fixed by installing the NuGet package

Install-Package -Id  Microsoft.AspNet.WebHelpers

Leave a Comment