title: Trying to connect Unity3d with a DLL that uses SQL Server Compact Missing or incorrect header for method CompileQueryPlan?
body: <p>I'm working on a Unity3d project that involves Databases, 
  I wanted the other developer to work on the server's and produce a DLL for me to use in Unity</p>
  
  <p>I tried to work directly in Unity with SqlServerCe but it always stated that it's missing libs
  So I managed to load the Backend's DLL successfully in Unity3D (Using v3.5 .Net Client Profile, in both the VS and Unity's Mono Develop)</p>
  
  <p>It initializes the SQL components successfully (reader ... etc)
  But when I execute the reader the DLL returns this exception as a string (I handled that when an exception occurs it's returned as a string)</p>
  
  <p>The Exception:</p>
  
  <pre><code>System.InvalidProgramException: Missing or incorrect header for method CompileQueryPlan
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand (CommandBehavior behavior, System.String method, ResultSetOptions options) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteReader (CommandBehavior behavior) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteReader () [0x00000] in &lt;filename unknown&gt;:0 
    at (wrapper remoting-invoke-with-check) System.Data.SqlServerCe.SqlCeCommand:ExecuteReader ()
    at AbuEl3orrefDatabaseBackend.DBHandler.PrepareAllQuestions () [0x00000] in &lt;filename unknown&gt;:0 
  </code></pre>