새로운 asp mvc 5 프로젝트를 만들었습니다.
프로젝트 대상 .NET.
ninject mvc 3 nuget 패키지가 설치되었습니다. 하지만 내가 CreateKernel()
방법 NinjectWebCommon.cs
에서이 오류가 프로젝트를 실행할 때 다음 Ninject.MVC이 assebly ASP.NET MVC 어셈블리의 이전 버전을 참조하고 있기 때문에mvc 5 프로젝트에 ninject mvc 3을 설치 한 후의 문제
An exception of type 'System.IO.FileLoadException' occurred in Ninject.dll but was not handled in user code
Additional information: 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)
왜 Ninject.MVC5를 설치하지 않습니까? http://www.nuget.org/packages/Ninject.MVC5/ – devuxer