Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.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 无法在Web.config中加载Ninject程序集_Asp.net Mvc_Web Config_Ninject_Nuget_Ninject.web.mvc - Fatal编程技术网

Asp.net mvc 无法在Web.config中加载Ninject程序集

Asp.net mvc 无法在Web.config中加载Ninject程序集,asp.net-mvc,web-config,ninject,nuget,ninject.web.mvc,Asp.net Mvc,Web Config,Ninject,Nuget,Ninject.web.mvc,我正在尝试调试我的应用程序,但此时错误如下所示: Could not load file or assembly 'Ninject, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The system cannot find the file specified. 我已经在Web.Config文件中添加了一个程序集引用 <dependentAss

我正在尝试调试我的应用程序,但此时错误如下所示:

Could not load file or assembly 'Ninject, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The system cannot find the file specified.
我已经在Web.Config文件中添加了一个程序集引用

<dependentAssembly>
        <assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>

然后调试也没有显示错误。

我的问题得到了解决,因为不需要添加Ninject包&在我的应用程序端有三个库。 我刚刚卸载了Ninject的所有软件包


很抱歉浪费您的时间。

当您查看时,您的bin目录中有哪些DLL?我在Azure中遇到了这个问题,尽管一切都在本地运行。