I installed Ninject packages via package manager console:
install-package Ninject.Mvc5 install-package Ninject.Web.WebApi
Beacause I didn't specify version It installed I suppose the latest availabe version (3.3.0) of the packages and their dependencies.
Among other dependecies It installed Ninject 3.3.3.
Then I realized I needed version 126.96.36.199 so I unistalled Ninject.Mvc5 and Ninject.Web.WebApi version 3.3.0 with all their dependencies (github showed 0 changes after uninstalling process) and installed version 188.8.131.52. Ninject wich goes with this is version 3.2.0.
So, when I run the app I got following error: "Could not load file or assembly 'Ninject, Version=184.108.40.206, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
I checked assembly's manifest definition via ildasm and there are no any reference to Ninject 3.3.3. All references are to Ninject 3.2.0. Also in .csproj, packages.config and bin folder Ninject version is 3.2.0.
I am able to resolve this problem with Web.config:
<dependentAssembly> <assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" /> <bindingRedirect oldVersion="220.127.116.11" newVersion="18.104.22.168" /> </dependentAssembly>
but obviously, there is a place where still exist reference to this Ninject 3.3.3 version which has deleted. Where is that place, can someone figure out?
User contributions licensed under CC BY-SA 3.0