Note that there are some explanatory texts on larger screens.

plurals
  1. POImport older assembly into .NET 4.0 project
    primarykey
    data
    text
    <p>So, I'm going along testing my VB.net 2010 app, when the IDE goes into debugging mode for a <code>FileLoadException</code>. The debugger says <code>Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.</code> When I add the code in the solution found <a href="https://stackoverflow.com/questions/2455654/what-additional-configuration-is-necessary-to-reference-a-net-2-0-mixed-mode">here</a>, I get an unhandled <code>ConfigurationErrorException: Configuration system failed to initialize</code> in the file <code>Settings.Designer.vb</code> at the code:</p> <pre><code>Public Property needsSetup() As Boolean Get Return CType(Me("needsSetup"),Boolean) ''It gives the error here.'' End Get Set Me("needsSetup") = value End Set End Property </code></pre> <p>Here is the code I am trying to get working:</p> <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dblist() As Array = sqlQuery() End Sub Function sqlQuery() Dim dbConnection As SQLiteConnection = New SQLiteConnection("database.sqlite") dbConnection.Open() Dim readCommand = dbConnection.CreateCommand() readCommand.CommandText = "SELECT * FROM thetablez" Dim sqlReader As SQLiteDataReader sqlReader = readCommand.ExecuteReader() Dim list(1) As String Dim cntr As Integer = 1 While (sqlReader.Read()) list(cntr) = sqlReader("identifier") ReDim Preserve list(list.Length + 1) cntr += 1 End While dbConnection.Close() Return list End Function </code></pre> <p>I really need this library to work, otherwise I'm copying 32mb of stuff into my application code! Please help, and if you have the solution, your username will be in the credits (ooh, an incentive). Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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