After deploying your application you may receive errors similar to the following:
Could not load file or assembly ‘System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.
or
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
This is due to the MVC binaries not being installed in the GAC on the server. To get past these errors you must bin deploy the necessary DLLs to the application’s bin directory.
The following procedure in Visual Studio will allow you to bin deploy
1) Right click on your project and click on Add Deployable Dependencies.
2) Click the appropriate dependency on the dialog that appears. After you click OK, you should see a new folder, _bin_deployableAssemblies in your project tree.
3) Deploy your application as you normally would and Visual Studio will now deploy all the listed DLLs onto the server to your /bin directory.