I am trying to install Unity.Mvc4, but I am getting this error message;
Failed to load file or assembly "Microsoft.Practices.Unity, Version = 2.1.505.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Version of Microsoft.Practices.Unity I have 3.0.0.0. Why do I need an older version?
Unity.Mvc4 - Unity. Unity.Mvc4, Unity , (. )
Install-Package Microsoft.Practices.Unity -Version <press tab key for autocomplete>
. Unity ( MVC -API 3), , Unity.Mvc4 Unity.WebApi. ( Unity 3 ), Unity , .
Unity 3. web.config:
<dependentAssembly> <assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.5.0.0"/> </dependentAssembly>