How to fix MVC website error: Failed to load file or assembly "System.Web.Helpers, Version = 2.0.0.0

I have MVC3 installed on my dedicated server and I have mvc3 website, the problem is that: On some pages, I get this error:
"Failed to load file or assembly" System.Web.Helpers, Version = 2.0.0.0 "

enter image description here

And I do not know what the problem is, because this did not happen on this website or on any MVC3 website on the same server.

Note. The problem occurs on some pages in which I use the grid helper, but there are other pages that have a grid helper and work fine.

I tried this too: http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx , as long as I know this is an old post, but without hope.

+7
source share
1 answer

You must install or update the NuGet package in your project, which depends on Razor WebPages v2 ( System.Web.Helpers, Version=2.0.0.0 ), which is part of the upcoming version of ASP.NET MVC 4.

Take a look at all the referenced assemblies and check their dependencies.

+7
source

All Articles