簡體   English   中英

無法加載文件或程序集'Ninject.Web,Version = 3.2.0.0,Culture = neutral,PublicKeyToken = c7192dc5380945e7'或其依賴項之一

[英]Could not load file or assembly 'Ninject.Web, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies

我正在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論壇之前,它的工作方式。 安裝后,它顯示像這樣的錯誤。

MVCForum包引用了Ninject.Web,但此包未與MVCForum一起安裝。 您需要自己安裝Ninject.Web軟件包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

相關問題 C#:無法加載文件或程序集'OpenPop,Version = 2.0.4.369,Culture = neutral,PublicKeyToken = null'或其依賴項之一 無法加載文件或程序集“系統,版本=4.0.0.0,文化=中性,PublicKeyToken=b77a5c561934e089”或其依賴項之一 無法加載文件或程序集'System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 561934e089'或其依賴項之一 無法加載文件或程序集“BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null”或其依賴項之一 無法加載文件或程序集'System.Web.Razor,版本= 2.0.0.0,區域性=中性,PublicKeyToken = 31bf3856ad364e35'或其依賴項之一 無法加載文件或程序集'System.Data.Linq,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'或其依賴項之一 無法加載文件或程序集'XXX,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依賴項之一 無法加載文件或程序集'Dapper,Version = 1.8.0.0,Culture = neutral,PublicKeyToken = null'或其依賴項之一 無法加載文件或程序集“System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或其依賴項之一 無法加載文件或程序集“工具,版本= 4.5.0.0,區域性=中性,PublicKeyToken = f7660c0f5438cda5”或其依賴項之一
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM