I developed an ASP.NET MVC 3 web application and it’s working correctly locally, but not on the server:
Line 18:<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
How do I fix the fact that the server can’t find this assembly?
It’s looking for a GAC’d assembly reference to that assembly. Do you have that assembly installed on the server? If not, you need to set it to
bin deploy.Here’s how you do that:
To set the Copy Local property to True
In Solution Explorer, double-click the My Project node for the project.
In the Project Designer, select the References tab.
Select a referenced component in the References list.
The properties associated with that reference appear in a list in the Properties window.
Select Copy Local from the left-hand column, and then click the arrow in the right-hand column to change the value to True. (Source)
To set up your project to
bin deploy, follow these instructions laid out by Scott Hanselman.