Witam,
przerabiam właśnie 7. dział z ww. książki i mam problem, a mianowicie wysypuje mi się wyjątek :
System.IO.FileLoadException Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
Wysypuje się dla kodu przez NuGet
private static IKernel CreateKernel() {
var kernel = new StandardKernel();
kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel);
kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();
RegisterServices(kernel);
return kernel;
}
w
var kernel = new StandardKernel();
Zrozumiałbym jakby się wysypywało w czymś moim, ale po kilku nieudanych próbach sięgnąłem po gotowy kod i zdziwienie - ten sam wyjątek :/ Na SO czytałem, że pomaga czasem reinstalacja Ninjecta, zrobiłem to, ale ciągle to samo. Wrzucić kod? (Który, książkowy skopiowany, mój(przepisany))