【问题标题】:Could not load file or assembly 'Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies无法加载文件或程序集 'Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' 或其依赖项之一
【发布时间】:2016-07-22 10:54:52
【问题描述】:

我正在从事 MVC5 项目。我想使用包管理器控制台使用 MVC 论坛 Nuget 包。安装包管理器控制台。在尝试运行项目后,我得到了这样的错误

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' could not be loaded.




=== Pre-bind state information ===
LOG: DisplayName = Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7
 (Fully-specified)
LOG: Appbase = file:///C:/TIckmarksportal/MVC5_Full_Version/Inspinia_MVC5/
LOG: Initial PrivatePath = C:\TIckmarksportal\MVC5_Full_Version\Inspinia_MVC5\bin
Calling assembly : mvcForum.Web, Version=1.5.1.60520, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\TIckmarksportal\MVC5_Full_Version\Inspinia_MVC5\web.config
LOG: Using host configuration file: C:\Users\Tickmarks\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7
LOG: Attempting download of new URL file:///C:/Users/Tickmarks/AppData/Local/Temp/Temporary ASP.NET Files/vs/d4d6aff4/6a77f817/Ninject.Web.DLL.
LOG: Attempting download of new URL file:///C:/Users/Tickmarks/AppData/Local/Temp/Temporary ASP.NET Files/vs/d4d6aff4/6a77f817/Ninject.Web/Ninject.Web.DLL.
LOG: Attempting download of new URL file:///C:/TIckmarksportal/MVC5_Full_Version/Inspinia_MVC5/bin/Ninject.Web.DLL.
LOG: Attempting download of new URL file:///C:/TIckmarksportal/MVC5_Full_Version/Inspinia_MVC5/bin/Ninject.Web/Ninject.Web.DLL.
LOG: Attempting download of new URL file:///C:/Users/Tickmarks/AppData/Local/Temp/Temporary ASP.NET Files/vs/d4d6aff4/6a77f817/Ninject.Web.EXE.
LOG: Attempting download of new URL file:///C:/Users/Tickmarks/AppData/Local/Temp/Temporary ASP.NET Files/vs/d4d6aff4/6a77f817/Ninject.Web/Ninject.Web.EXE.
LOG: Attempting download of new URL file:///C:/TIckmarksportal/MVC5_Full_Version/Inspinia_MVC5/bin/Ninject.Web.EXE.
LOG: Attempting download of new URL file:///C:/TIckmarksportal/MVC5_Full_Version/Inspinia_MVC5/bin/Ninject.Web/Ninject.Web.EXE.

我尝试安装更高版本不工作?怎么修?在安装 MVC 论坛之前,它的 Working 。安装后出现这样的错误。

【问题讨论】:

    标签: c# .net asp.net-mvc asp.net-mvc-4 nuget-package


    【解决方案1】:

    MVCForum 包引用了 Ninject.Web,但该包不与 MVCForum 一起安装。需要自己安装 Ninject.Web 包。

    【讨论】:

      猜你喜欢
      • 2017-02-14
      • 2019-03-18
      • 2017-11-08
      • 2018-03-21
      • 2017-07-02
      • 2016-07-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多