I am having a Asp.net MVC1 based application which needs to be migrated to Asp.net MVC2.
I opened this application in vs2010 and it automatically migrated it to MVC2.
However one of its code line is creating problem during page exceution.
I have following line in Application_start funtion of Global.asax
ModelBinders.Binders.DefaultBinder = new Microsoft.Web.Mvc.DataAnnotations.DataAnnotationsModelBinder();
This is because Microsoft.Web.MVC.DataAnnotations dll is missing in MVC2.
I tried to skip this error by commenting this code but that is also giving error.
Can somebody please guide me about its replacement code.
Thanks in advance
View Complete Post