2016-07-22 44 views
0

我的工作MVC5項目它的一個依賴。我想使用包管理器控制檯使用MVC論壇Nuget包。安裝包管理器控制檯。試圖運行項目後我越來越像這樣錯誤無法加載文件或程序集「Ninject.Web,版本= 3.2.0.0,文化=中性公鑰= c7192dc5380945e7」或

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論壇它的工作。安裝後它顯示錯誤像這樣。

回答

1

的MVCForum包有參考Ninject.Web,但這個包不MVCForum一起安裝。你需要自己安裝Ninject.Web包。

相關問題