2013-05-03 56 views
1

我試圖調試我的應用程序,但在當時的錯誤如下圖所示:未能加載Ninject裝配在Web.config中

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> 

然後還調試不顯示錯誤。

+1

是什麼DLL文件在你的bin目錄中,當你看? – 2013-05-03 20:35:18

+0

我在Azure的這個問題,雖然一切正常本地。 – tofutim 2015-11-20 04:40:05

回答

0

因爲沒有必要對我的應用程序的側面添加Ninject包&有圖書館我的問題得到解決。 我剛剛卸載Ninject的所有包。

對不起,浪費你的時間。