Feb 25, 2015, 1:12 AM
[CLOSED] error after upgrading to MVC 4
Hi,
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:
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!
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 9:58 AM.
Reason: [CLOSED]