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中遇到了这个问题,尽管一切都在本地运行。