title: Resolved: There was an error generating '..Context'. Try rebuilding your project
body: <p>I am learning Insert ,update, delete using Entity Framework in MVC from </p>
  
  <blockquote>
    <p><a href="https://www.youtube.com/watch?v=8f4P8U1a2TI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=8f4P8U1a2TI</a></p>
  </blockquote>
  
  <p>I add new Entity Framework 
  and after that adding new Controller.</p>
  
  <p>here is my Setting for adding new Controller</p>
  
  <p><img src="https://i.stack.imgur.com/JnPEN.jpg" alt="enter image description here"></p>
  
  <p>when I save adding Controller . Error Comes ..</p>
  
  <blockquote>
    <p>There was an error generating
    'MvcApplication1.Models.EmployeeContext'. Try rebuilding your project.</p>
  </blockquote>
  
  <p>EmployeeContext.cs</p>
  
  <pre><code> public  class EmployeeContext :DbContext
      {
          public DbSet&lt;Employee&gt; Employees { get; set; }
      }
  </code></pre>
  
  <p>(Employee class is in seperate Assembly)</p>
  
  <p>Solutions i tried :</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/16035939/cannot-add-controller-in-asp-net-mvc-project">Cannot add controller in ASP.NET MVC project</a></li>
  </ol>
  
  <p>it says some special constructor in dbcontext caused problem... i dont have any</p>
  
  <ol start="2">
  <li>uninstall and reinstall entity framework from nuget several times</li>
  </ol>
  
  <p>3.Database.SetInitializer() placed in  Application_Start method in Global.asax.cs</p>
  
  <p>whats Wrong ? please suggest ...</p>