chobo2
chobo2

Reputation: 85845

Nuget + Ninject + My site won't compile because of wrong version?

I tried to update my ninject stuff to the newest version and now I get this error

Error   133 Assembly 'Ninject.Web.Mvc, Version=2.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' uses 'Ninject, Version=2.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' which has a higher version than referenced assembly 'Ninject, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7'    

I also tried deleting and reinstall the ninject .dlls but same error.

Upvotes: 1

Views: 1189

Answers (1)

Leniel Maccaferri
Leniel Maccaferri

Reputation: 102438

Check the References of your project in Visual Studio. Look for the Ninject reference and right-click it. In the properties grid you should be able to see its version. It's probably 2.0.0.0. Try to delete this version and then add a reference to the newest version 2.2.0.0.

Upvotes: 2

Related Questions