Hi, I understand that there is a very similar question here. Firstly, the proposed answer was not appropriate since I did not have a version in the GAC. I also tried uninstalling the .NET Framework and visual studio (2013) with no luck.
For my existing projects using Entity Framework version prior to 6.1.3, it gives me the following error when trying to run:
{"The type initializer for 'System.Data.Entity.SqlServer.SqlProviderServices' threw an exception."} Could not load type 'System.Data.Entity.Infrastructure.TableExistenceChecker' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.":"System.Data.Entity.Infrastructure.TableExistenceChecker"
However, they build perfectly, and if I use 6.1.3, this works for some reason. I know that this is unique to my car, because they work on the machines of my colleagues. It does this in any project related to EntityFramework (or EntityFramework.SqlServer). Itโs as if somewhere there is an older version of EntityFramework.dll, but, as I say, it is not in the GAC.
Other recommendations were to uninstall and reinstall with a specific version, and this will not work. I canโt remember the moment in time when it stopped working (as it worked in the past), although it probably has something to do with me, installing VS2015, which I recently removed, but without success.
Please let me know if anyone can help or needs more information.
Thank you very much.
source share