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

后端 未结 7 962
名媛妹妹
名媛妹妹 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:23

    In my case, the missing assembly was already included as a reference to the project. I solved by selecting it then setting its "Copy Local" property to True. I "published" my project to IIS using web-deploy from Visual Studio. This time the assembly was copied to the \bin folder of the website.

提交回复
热议问题