I\'m developing an ASP.NET Web Api 2.2 with C#, .NET Framework 4.5.1.
After updating my Web.Api to Ninject 3.2.0 I get this error:
Error activating M
I fixed this by adding the following line in Global.asax (where my StandardKernel was being initialized):
Global.asax
StandardKernel
kernel.Bind().ToConstant(new DefaultModelValidatorProviders(GlobalConfiguration.Configuration.Services.GetModelValidatorProviders()));