Results 1 to 2 of 2

Thread: SQLite mixed .NET environment

  1. #1
    ryntje is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2012
    Location
    Belgiium
    Posts
    1
    Reputation
    0

    SQLite mixed .NET environment

    Hi,
    First of all I'm quite new in programming VB.NET, so maybe I asking a simple question. But so far I was not able to solve my problem.

    I developed an VB.NET application in VS2010. For the database I use SQLite V3.
    In VS2010 all is working fine, but when I build my application and run it under windows I got a message that I use a mixed .NET envionment.

    An error occurred creating the form. See Inner Exception Exception for details. The error was: Assembly with mixed mode was created with the runtime version v2.0.50727 and can not without additional configuration information loaded into the runtime version 4.0.

    In my program I use .NET4 tools (charts and dattimepicker dropdownboxes) but SQLite is compiled in .NET2.

    So additional in VS2010 I added the "app.config" with the famous lines:

    Code:
       
     <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    </startup>
    
    But this doesn't help.
    In window I've installed .NET2 as well as .NET4

    When I'm opening app.config in VS2010 I'm also getting the following messages/errors(?)
    • Message 1 Could not find schema information for the attribute 'useLegacyV2RuntimeActivationPolicy'. C:\SMAExec\PV2SQLDB\PV2SQLDB\app.config
    • Message 2 Could not find schema information for the element 'supportedRuntime'. C:\SMAExec\PV2SQLDB\PV2SQLDB\app.config
    • Message 3 Could not find schema information for the attribute 'version'. C:\SMAExec\PV2SQLDB\PV2SQLDB\app.config
    • Message 4 Could not find schema information for the attribute 'sku'. C:\SMAExec\PV2SQLDB\PV2SQLDB\app.config


    Can somebody give me a hint?
    Thanks a lot.

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,359
    Reputation
    1544

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking