• Disclaimer

Developer Concepts

Error upgrading from MVC 3 to MVC4

November 28, 2012 10:47 am / Steve

We recently upgraded one of our applications from MVC 3 to MVC 4. In development we use the Visual studio development server and the upgrade seemed fine. When we deployed the files to our staging environment we had the following error:

This seemed happen only when we navigated to an area. After much gnashing of teeth we found that the web.config in each View folder was still referencing the version 3:

<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />

To Fix this, just update the version.

Posted in: MVC / Tagged: 'object' does not contain a definition, Error, MVC 4, Upgrade

Comments are closed.

Post Navigation

← Previous Post
Next Post →

Recent Posts

  • Unrecognized element folderLevelBuildProviders
  • Using Javascript to Load Blog Posts From WordPress
  • An introduction to KnockoutJS Observables
  • Automating NTLM logins with Selenium
  • KnockoutJS and Web API

Recent Comments

    Archives

    • July 2015
    • April 2015
    • March 2015
    • November 2014
    • October 2014
    • June 2014
    • May 2014
    • March 2014
    • February 2014
    • November 2013
    • August 2013
    • January 2013
    • November 2012
    • May 2012
    • September 2011
    • July 2011
    • May 2011
    • March 2011
    • November 2010
    • September 2010
    • February 2010
    • December 2009
    • November 2009
    • October 2009

    Categories

    • Architecture
    • Caching
    • Code Smells
    • Html 5
    • IOC
    • Javascript
    • Jquery
    • JSON
    • KnockoutJS
    • Linq
    • Linq To Xml
    • Mocking
    • MVC
    • MVVM
    • MySql
    • NHibernate
    • Selenium
    • Silverlight
    • Solving Errors
    • Sql
    • TDD
    • Uncategorized
    • Unit Testing
    • Visual Studio 2010
    • WCF

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    © Copyright 2019 - Developer Concepts
    Infinity Theme by DesignCoral / WordPress