Could not load file or assembly ‘System.Web.Helpers, Version=

I recently ran in to this error on an IIS 6 server using MVC 3 Razor.

Check this first

your exception:

System.IO.FileNotFoundException: Could not load file or assembly ‘System.Web.Mvc, Version=

It is trying to load MVC version 1. You probably need to do an assembly binding redirect in your test project as well, same as the one in the web.config:


Place that in the 


 section of the app.config of your test assembly.


Check this second

Manually copy these files to your website’s bin directory (they should be on your development machine) or you can include them in your website’s build: Instructions here



Make sure you are running the right version of .net on your website in IIS:

Additionally ensure ASP.NET MVC 3 is set up properly in IIS 6:

3 comments to Could not load file or assembly ‘System.Web.Helpers, Version=

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>




This site uses Akismet to reduce spam. Learn how your comment data is processed.