title: Unable to find assembly Entity Framework v 4.4.0.0
body: <p>We're on <code>VS2010</code> and have Entity Framework working for a number of things. The reference is there, it's 4.4.0.0. There are SO threads with the same error saying it can be a mismatch due to .net versions, however since EF calls work in parts of the program, that seems unlikely. I've uninstalled and reinstalled EF a few times, and no luck there.</p>
  
  <p>This error happens on the <code>SaveChanges()</code> :</p>
  
  <blockquote>
    <p>Unable to find assembly Entity Framework 4.4.0.0</p>
  </blockquote>
  
  <pre><code>   // add to permissions table
     EAT_Permissions permission = new EAT_Permissions
     {
           action_id = actionID,
           login = userLogin
     };
     context.EAT_Permissions.Attach(permission);
     context.EAT_Permissions.Add(permission);
     context.SaveChanges();
     permissionsDGV.Refresh();
     MessageBox.Show("Permission was added");
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/NFrJg.png" alt="enter image description here"></p>
  
  <p>In comparison, working code: </p>
  
  <pre><code>if (context.EAT_Users.Any(p =&gt; p.login == userLogin))
              {   
                  var removeUser = context.EAT_Users.Find(userLogin);
                  context.EAT_Users.Attach(removeUser);
                  context.EAT_Users.Remove(removeUser);
                  context.SaveChanges();
                  userListDGV.Refresh();
                  MessageBox.Show("User was removed");
              }
              else..
  </code></pre>