Could not load file or assembly 'EntityFramework.SqlServer' or one of its dependencies

0

I created a project in Visual Studio 2015 but after copy and run on other computer it gives me below error

Could not load file or assembly 'EntityFramework.SqlServer' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Please give me suggestion how to fix it

c#
.net
sql-server
asp.net-mvc
entity-framework
asked on Stack Overflow May 4, 2017 by Meer

1 Answer

2

There are a few ways to fix this,

  1. clean the project
  2. run nuget restore
  3. rebuild the project

If this does not work, try deleting the reference and adding it again by doing the following:

  1. remove the reference if it is there.
  2. go to the package.json and remove the EntityFramework line.
  3. Go to Nuget package manager and reinstall the reference to your project.
answered on Stack Overflow May 4, 2017 by Wesley Coetzee

User contributions licensed under CC BY-SA 3.0