NinjectDependencyResolver fails binding ModelValidatorProvider

前端 未结 10 1524
迷失自我
迷失自我 2020-12-08 14:00

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         


        
10条回答
  •  温柔的废话
    2020-12-08 14:36

    This is what worked for me.

    uninstall-package Ninject.Web.WebApi.WebHost

    The above command uninstalled the version 'Ninject.Web.WebApi.WebHost 3.2.4.0' and the error is gone!!

    Just reconfirm, I have installed the same package using the command

    install-package Ninject.Web.WebApi.WebHost

    and the command installed the package 'Ninject.Web.WebApi.WebHost 3.2.4.0' and the error reappeared.

提交回复
热议问题