[CLOSED] error after upgrading to MVC 4

  1. #1

    [CLOSED] error after upgrading to MVC 4


    I have a project using Ext.Net 2.2 and MVC 3. I had to upgrade to MVC 4, and now when I start up the webpage an exception is thrown in this function on the last line here:

    public static string BuildProxy(ViewContext viewContext)
                Dictionary<string, Dictionary<string, List<MvcDirectMethod>>> methods = MvcDirectMethod.GetGroupedMethods(viewContext);
                StringBuilder sb = new StringBuilder(256);
                UrlHelper urlHelper = new UrlHelper(viewContext.RequestContext, RouteTable.Routes);
    the Exception is
    System.ArgumentNullException: Value cannot be null. Parameter name: item

    and it appears to be the viewContext.RequestContext variable that is the problem.

    Anyone else seen this? Any ideas how to fix this problem? Thank you in advance!
    Last edited by Daniil; Mar 03, 2015 at 10:58 AM. Reason: [CLOSED]
  2. #2
    Did you set assemblyBinding in web.config?
    See the following post

Similar Threads

  1. Upgrading from 2.4 to 3.0
    By alexanderius in forum 3.x Help
    Replies: 4
    Last Post: Mar 14, 2016, 10:32 PM
  2. Need help upgrading from 1.x to 2.x
    By wexman in forum 2.x Help
    Replies: 1
    Last Post: Jun 06, 2013, 12:28 PM
  3. Upgrading from V1.3 to V2.0
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Mar 29, 2012, 5:47 PM
  4. Upgrading RC1 to RC2
    By santosbj in forum 1.x Help
    Replies: 8
    Last Post: Jun 14, 2011, 8:06 AM
  5. upgrading from 0.8.1 to 0.8.2
    By Kamal in forum 1.x Help
    Replies: 4
    Last Post: Apr 08, 2010, 6:52 PM

Tags for this Thread

Posting Permissions