<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add-In and ADO.NET Entity Framework - ArcMap Crashes in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-and-ado-net-entity-framework-arcmap-crashes/m-p/611391#M16403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on an ArcMap Add-In project using the .NET Framework 3.5 and targeting ArcMap 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to use the ADO.NET Entity Framework using a database-first strategy.&amp;nbsp; However, when debugging, ArcMap crashes at the constructor when the base constructor is called as highlighted below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public Entities() : 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base("name=Entities", "Entities"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.OnContextCreated();
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 20:13:29 GMT</pubDate>
    <dc:creator>MattNicol</dc:creator>
    <dc:date>2012-09-05T20:13:29Z</dc:date>
    <item>
      <title>Add-In and ADO.NET Entity Framework - ArcMap Crashes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-and-ado-net-entity-framework-arcmap-crashes/m-p/611391#M16403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on an ArcMap Add-In project using the .NET Framework 3.5 and targeting ArcMap 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to use the ADO.NET Entity Framework using a database-first strategy.&amp;nbsp; However, when debugging, ArcMap crashes at the constructor when the base constructor is called as highlighted below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public Entities() : 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base("name=Entities", "Entities"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.OnContextCreated();
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 20:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-and-ado-net-entity-framework-arcmap-crashes/m-p/611391#M16403</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2012-09-05T20:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add-In and ADO.NET Entity Framework - ArcMap Crashes</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-and-ado-net-entity-framework-arcmap-crashes/m-p/611392#M16404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would be helpful to see what exception is causing ArcMap to crash.&amp;nbsp; You can use Visual Studio to run ArcMap and can catch these exceptions in order to view them.&amp;nbsp; Just break in the debugger before the crash and tell Visual Studio to stop when an exception is thrown.&amp;nbsp; Note that you can get false positives so leaving this on will get very confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not used add-in's but perhaps the problem lies in ArcMap finding assemblies that your add-in references?&amp;nbsp; Just a guess.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 11:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/add-in-and-ado-net-entity-framework-arcmap-crashes/m-p/611392#M16404</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-09-08T11:39:44Z</dc:date>
    </item>
  </channel>
</rss>

