Knowledge Essentials - 3Essentials Hosting

ERROR: Could not load file or assembly System.Web.Helpers (MVC3)

Article ID: 1932

 Back to Search

Symptom

You receive the following error message on your MVC3 based site:

 

Server Error in '/' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0....  or one of its dependencies. The system cannot find the file specified.

Resolution

 

Your application is looking for system.helpers.dll which is not registered with the GAC on your server, therefore you will need to deploy to the bin folder. Unlike MVC 2, Microsoft hasn’t released an installer for MVC 3.  Considering this and that MVC was designed to be deployable to the application's bin folder, we have not deployed MVC to the GAC on our hosting servers.   
 
Visual Studio 2010 provides a simple way to deploy the needed dlls. 
  1. Right click on your project and click on “Add Deployable Dependencies”.  
  2. Depending on your project, click the appropriate dependency from the dialogue box.  Once you click OK, you should see a new folder, _bin_deployableAssemblies in your project tree, identifying the included assemblies that will be included in the deployment. 
  3. Deploy your application as you normally would and Visual Studio 2010 will now deploy all the listed DLLs as part of the project. (i.e., it will put them in your application's bin folder)

 

 
Downloads Associated With This Article
No downloads are currently associated with this article.