title: The specified table does not exist. [ __MigrationHistory ]
body: <p>I've been using the following method since Entity Framework Code First became available:</p>
  
  <pre><code>public virtual void CreateDatabase()
  {
      var dbContext = _dbContextLocator.Current;
      dbContext.Database.Delete();
      dbContext.Database.Create();
      dbContext.Database.Initialize(true);
  }
  </code></pre>
  
  <p>Recently, I noticed that when <code>dbContext.Database.Create()</code> is hit, I get the following exception:</p>
  
  <blockquote>
    <p>System.Data.SqlServerCe.SqlCeException occurred<br>
    Message=The specified table does not exist. [ __MigrationHistory ]<br>
    Source=SQL Server Compact ADO.NET Data Provider<br>
    ErrorCode=-2147467259<br>
    HResult=-2147217865<br>
    NativeError=0<br>
    StackTrace: at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)<br>
    InnerException: </p>
  </blockquote>
  
  <p>If I go to Debug - Exceptions and check Thrown for "Common Language Runtime Exceptions", this causes execution to stop, and I get the above exception. If I uncheck it, the database seems to get created properly, but I get four repeats of the following error statements in my Output window:</p>
  
  <blockquote>
    <p>A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll<br>
    A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll<br>
    A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.Entity.dll<br>
    A first chance exception of type 'System.Data.EntityCommandExecutionException' occurred in System.Data.Entity.dll<br>
    A first chance exception of type 'System.Data.EntityCommandExecutionException' occurred in System.Data.Entity.dll<br>
    A first chance exception of type 'System.Data.EntityCommandExecutionException' occurred in System.Data.Entity.dll</p>
  </blockquote>
  
  <p>Placing a try/catch block around <code>dbContext.Database.Create()</code> has no effect.</p>
  
  <p>My goal is to create a completely blank database, then fill it with data manually. I do not wish to use the new Migrations feature of Entity Framework.</p>
  
  <p>What can I do to eliminate the first chance exceptions?</p>