Add-In and ADO.NET Entity Framework - ArcMap Crashes

Discussion created by matthewfnicol on Sep 5, 2012
Latest reply on Sep 8, 2012 by rlwatson
I'm working on an ArcMap Add-In project using the .NET Framework 3.5 and targeting ArcMap 10.0.

I'd like to use the ADO.NET Entity Framework using a database-first strategy.  However, when debugging, ArcMap crashes at the constructor when the base constructor is called as highlighted below.

public Entities() : 
     base("name=Entities", "Entities"){

If I set up my .edmx file in the same way in a Windows Forms project, the constructor works fine, so I'm thinking that it's something specfic to add-in projects.

Any ideas?