Before you think that this is a duplicated question, well... it maybe but I didn't found useful information anywhere for my issue.
I've a main web application project, let's call it project A and a sub class library project, project B.
Both projects must be compiled with .NET Framework 4 target Framework, and project B has installed Entity Framework Version 6.1.3. Project A instead, has an older Entity Framework 4.3.1...
Forget the "update it" option for this one: quite impossibile, for time due. The problem that I get at runtime is:"
Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies" error when project B is requested by Project A.
I've tried to uninstall EntityFramework on project B, clean the solution, reinstall EntityFramework but the problem still remains. I've tried to downgrade EntityFramework in project B, but I encontered a waste set of problems (edmx xml version mistake,tt namespace generation, metadata trouble, provider troubles...), and for turn back in a "normal" situation, I had to do an SVN revert after that.
Then, I tried to set "specific version = 'True'" on the Entity Framework reference properties in project B, but the error still persists. Don't know if AssemblyBinding in project A could be a part of this problem, but this is the configuration in web.config:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="4.4.0.0" />
</dependentAssembly>
</assemblyBinding>
Furthermore, I've noticed when I've reinstalled EF6.1.3 on project B that the bindingRedirect tag was setted with oldVersion="0.0.0.0-6.0.0.0" and newVersion="6.0.0.0", but with that configuration, project A was the one who crashed.
To be more specific, there's a project C class library that uses Entity Framework 5 in this solution and with the assemblyBinding shown, it has no problems... so, what can I do? Any suggestion will be appreciated!