Asp.net mvc 3 Ninject.MVC3包需要MVC5吗?
我已经安装了软件包,但出现以下错误Asp.net mvc 3 Ninject.MVC3包需要MVC5吗?,asp.net-mvc-3,ninject,Asp.net Mvc 3,Ninject,我已经安装了软件包,但出现以下错误 An exception of type 'System.IO.FileNotFoundException' occurred in Ninject.dll but was not handled in user code Additional information: Could not load file or assembly 'System.Web.Mvc, Version=5.2.2.0, Culture=neutral, PublicKeyTo
An exception of type 'System.IO.FileNotFoundException' occurred in Ninject.dll
but was not handled in user code
Additional information: Could not load file or assembly 'System.Web.Mvc, Version=5.2.2.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The system cannot find the file specified.
我认为这意味着我安装的ninject.MVC3软件包的版本需要MVC5,这让我觉得很奇怪。我最终解决了这个问题,使用Global.asax方式手动安装了ninject MVC,并按照规定注册服务