Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 3 Ninject.MVC3包需要MVC5吗?_Asp.net Mvc 3_Ninject - Fatal编程技术网

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,并按照规定注册服务