Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies

后端 未结 7 969
名媛妹妹
名媛妹妹 2021-02-18 13:56

I am adding Ninject in MVC project using the following commands in Package Manager Console:

Install-Package Ninject -version 3.0.1.10
Install-Package Ninject.Web         


        
7条回答
  •  无人及你
    2021-02-18 14:13

    If you're following the Pro ASP.NET MVC 5, follow these steps to resolve the issue:

    1. In your project tree in VS, right-click References and go to Manage NuGet Packages.
    2. Go to Online, nuget.org and search for ninject.
    3. Install Ninject, Ninject.Web.Common and Ninject.MVC5 (the book says to install MVC3).
    4. In the Manage NuGet Packages menu (from step 1), go to Updates, nuget.org.
    5. Update all modules, especially Microsoft ASP.NET MVC.

提交回复
热议问题