I created a new MVC 4 app and added the CF nuget package (version 1.0.0.42). This created App_Start/RegisterChameleonFormsComponents.cs. Building the project tells me:
The type or namespace name 'Binders' does not exist in the namespace 'ChameleonForms.ModelBinders' (are you missing an assembly reference?)
Changing:
ModelBinders.Binders.Add(typeof(DateTime), new DateTimeModelBinder());
ModelBinders.Binders.Add(typeof(DateTime?), new DateTimeModelBinder());
to:
System.Web.Mvc.ModelBinders.Binders.Add(typeof(DateTime), new DateTimeModelBinder());
System.Web.Mvc.ModelBinders.Binders.Add(typeof(DateTime?), new DateTimeModelBinder());
I created a new MVC 4 app and added the CF nuget package (version 1.0.0.42). This created
App_Start/RegisterChameleonFormsComponents.cs
. Building the project tells me:Changing:
to:
compiles ok. I'm guessing a namespace conflict.