title: Could not load type 'System.ComponentModel.DataAnnotations.Schema.IndexAttribute'
body: <p>I am having this Error.
  <img src="https://i.stack.imgur.com/3ZZdL.jpg" alt="Could not load type &#39;System.ComponentModel.DataAnnotations.Schema.IndexAttribute&#39; ERROR"></p>
  
  <p>The ApplicationDbContext is Auto Generated DbContext, used in account section. Whenever i try to use any Account Controller actions this error occurs.
      The error originates from </p>
  
  <pre><code>  public AccountController()
              : this(new UserManager&lt;ApplicationUser&gt;(new UserStore&lt;ApplicationUser&gt;(new ApplicationDbContext())))
          {
          }
  </code></pre>
  
  <p>I have my own DbContext which works fine and gets all the required Data.</p>
  
  <p>The references are fine. How do i fix this issue.</p>
  
  <p><strong>Update</strong>
  I used some updated Refrences for AspNet.Identity . is it causing the issue?</p>
  
  <p><strong>Update 2</strong>
  This error occured when I was mixing two Membership provider versions. I first used the default provided with MVC 5 then tried to use MVC 3 membership, then again went back to MVC 5. Then this error started to pop up.</p>
  
  <p>I still have not found the solution to this problem. <strong>But as workaround</strong>, I recreated the Project will all my previous files, and it worked.</p>