title: U2 Toolkit for .NET - Entity Framework Sample "EntityFramework_CodeFirst2" not connecting
body: <p>I get this error when trying to modify the EntityFramework_CodeFirst and EntityFramework_CodeFirst2 projects:</p>
  <blockquote>
  <p>Opening Connection
  [U2][UCINET-UO] [U2][UCINET-UO]WIN32 API Error:10053 An established connection was aborted by the software in your host machine[Rocket U2][UCINET - UNIRPC][ErrorCode=81009] The RPC failed Error in Socket Send and dataLength:36</p>
  <p>Inner Exception:Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. Inner Exception:WIN32 API Error:10053An established connection was aborted by the software in your host machine[Rocket U2][UCINET - UNIRPC][ErrorCode=81009] The RPC failed
  Error in Socket Send and dataLength:36</p>
  </blockquote>
  <p>I have set my connection string to:</p>
  <pre><code>&lt;add name=&quot;CustomerContext&quot; connectionString=&quot;Database=dbPath;UserID=userId;Password=password;Server=serverIp;Pooling=false;ServerType=universe;ConnectTimeout=500;PersistSecurityInfo=true&quot; providerName=&quot;U2.Data.Client&quot; /&gt;
  </code></pre>
  <p>Using those same credentials I can successfully connect using the U2 DB Provider for .NET test connection program on both the ADO.NET and UniObjects connections. I just cannot get it to work for the EntityFramework_CodeFirst projects.</p>
  <p>The UNIRPC is running on the host machine. Port 31438 is listening. Firewalls are off.</p>
  <p><strong>EDIT:</strong>
  I have set the environment variables UCINETTRACE and UCINETTRACESWITCH and have a trace log of the DataAdapter Sample. This is a snippet of the interesting part. <a href="http://pastebin.com/1kAXg3s4" rel="nofollow noreferrer">Full trace here</a></p>
  <blockquote>
  <p>5/30/2012 10:56:53 AM:ThreadID: ThreadID: 11 Thread Name : Cursor #1--UciStatement::OpenServerCursor()  and SQL String::call *HS.OLEDBINFO('ACCTS', '', '', '', '', '1', '', 0, 1)
  5/30/2012 10:56:53 AM:ThreadID: Exiting:ThreadID: 11 Thread Name : UciStatement::OpenServerCursor()
  5/30/2012 10:56:53 AM:ThreadID: Entering:ThreadID: 11 Thread Name : UciStatement::AssociateServerCursor()
  5/30/2012 10:56:53 AM:ThreadID: Exiting:ThreadID: 11 Thread Name : UciStatement::AssociateServerCursor()
  5/30/2012 10:56:53 AM:ThreadID: Entering:ThreadID: 11 Thread Name : UciStatement::()ServerExecute
  5/30/2012 10:56:53 AM:ThreadID: Entering:ThreadID: 11 Thread Name : UciStatement::ServerExecuteSql()
  5/30/2012 10:56:53 AM:ThreadID: ThreadID: 11 Thread Name :  [U2][UCINET][UNIVERSE]:ERROR: CAN'T EXECDIRECT SELECT FROM @TMP</p>
  </blockquote>
  <p><strong>EDIT 2:</strong>
  I have the HS.SALES example working and I am on UniVerse 11.4 (current). I spoke with Rocket Support and I did not know that I needed to authorize individual UV accounts with HS.ADMIN, which was likely the problem. I thought a solid connection to the database was going to cut it, especially since HS.SALES was working. I still need to &quot;SQLize&quot; my DICT files to allow them to work on ADO.NET (&amp; EF) but I almost have it now.</p>