title: Using Asp.net Identity in with Entity Framework throws Could not load type .Schema.IndexAttribute' from assembly 'EntityFramework, Version=6.0
body: <pre><code>public EmployeeDTO AuthenticateEmployee(string username, string password)
  {
      try
      {
          var userLogin = UnitOfWork.UserLoginRepository.Get(x =&gt; x.UserName == username).FirstOrDefault();
  
          if (userLogin == null)
              return null;
          else
          {
              var userStore = new UserStore&lt;IdentityUser&gt;();
              var userManager = new UserManager&lt;IdentityUser&gt;(userStore);
  
              // this throws an error.
              var user = userManager.Find("username", "password");
          }
      }
  }
  </code></pre>
  
  <p>Results in error:</p>
  
  <blockquote>
    <p>Could not load type 'System.ComponentModel.DataAnnotations.Schema.IndexAttribute' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</p>
  </blockquote>
  
  <p>I'm using EF 6.0, <code>Microsoft.AspNet.Identity.EntityFramework</code> Ver 2.0.</p>
  
  <p>I couldn't perform any action based on EF using Identity is there anything I have to do, my EDMX is in another class library. I think its a DLL issue.</p>
  
  <p>Please help me to use identity with EF.</p>
  
  <p>I have gone through <a href="http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project" rel="nofollow noreferrer">Msdn</a></p>