Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot generate database from model: System.EntryPointNotFoundException
    text
    copied!<p>I've got a weird error when trying to generate database from an EF model. I've been able to reproduce this in a simple scenario. I create a new project, a new Entity Data Model, a new Entity with just the <code>Id</code> as the Key. Then I select <code>Generate Database from Model</code>, choose my DB, click Next... and then I get the following error:</p> <pre><code>Encountered the following errors while processing the template '...\DBGen\SSDLToSQL10.tt': Line 0, Column 0: 'Running transformations: System.EntryPointNotFoundException: Entry point was not found. at System.Collections.Generic.ICollection`1.get_Count() ... </code></pre> <p><img src="https://i.stack.imgur.com/ukwzF.png" alt="Generate DB Error"></p> <p><img src="https://i.stack.imgur.com/0fERg.png" alt="Generate DB Error closeup"></p> <p>The template file is present at the location referenced in the error message.<br> Tested against both <strong>MS SQL Server Express</strong> as well as <strong>2008 R2</strong>.<br> I am pretty sure I used the <code>Generate Database from Model</code> feature before and it worked fine, but I am not sure how long ago exactly (at least half a year). I got this error message with <strong>EF 4.1</strong> installed. Now I updated to version <strong>4.2</strong> and am still getting the same problem.<br> I am using <strong>Visual Studio 2010 with SP1</strong> installed (Version 10.0.40219.1 SP1Rel). Anyone seen anything like this before? Any ideas what's wrong and how to fix this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload