in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Error message : Object reference not set to an instance of an object

Last post 10-19-2010 3:28 AM by cphsia. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-25-2009 12:40 PM

    • Cedric
    • Not Ranked
    • Joined on 09-25-2009
    • Posts 1

    Error message : Object reference not set to an instance of an object

    Hi folk, I'm using Visual Studio 2008 express (.Net V3.5 SP1) with the designer components installed (version of SQLite-1.0.65.0). When I try to add a connection, I get an error after entering my connection string and clicking OK: "Object reference not set to an instance of an object" . is someone has encountered this issue ? Thx for your help in advance, Cedric
  • 10-08-2009 7:56 AM In reply to

    • Mahrak
    • Top 500 Contributor
    • Joined on 09-16-2009
    • France
    • Posts 5

    Re: Error message : Object reference not set to an instance of an object

     I have exactly the same problem. I described it in this topic, but I don't have any solution. I hope Robert will look at it soon.

  • 10-08-2009 8:17 AM In reply to

    Re: Error message : Object reference not set to an instance of an object

    http://sqlite.phxsoftware.com/forums/p/987/5198.aspx#5198

    The designers are missing functionality in the Express Editions.  There's nothing I can do about it unfortunately.

  • 09-25-2010 1:10 PM In reply to

    • Erny
    • Not Ranked
    • Joined on 09-25-2010
    • Posts 2

    Re: Error message : Object reference not set to an instance of an object

    It fixable through patch against Visual Studio Express config file to redirect assembly binding. For example to get SQLite designer working in VS C# 2008 Express, you need to add following lines to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCSExpress.exe.config on same level with other <dependentAssembly> entries.
    <dependentAssembly>  
       <assemblyIdentity name="Microsoft.VisualStudio.Data" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />  
       <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> 
    </dependentAssembly> 
    For VS C# 2010 you need to add following lines to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCSExpress.exe.config
    <dependentAssembly>   
      <assemblyIdentity name="Microsoft.VisualStudio.Data" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />   
      <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="10.0.0.0" />   
    </dependentAssembly> 
    For fix SQLite Designer in Visual Basic Express, change VBExpress.exe.config, for Visual C++ change VCExpress.exe.config respectively. Although i not recommend it, cause it is against VS Express EULA ("You may not work around any technical limitations").
    However seems SQLite design mode works in Visual Studio Web Developer Express 2008 without any modifications.
  • 10-19-2010 3:28 AM In reply to

    • cphsia
    • Not Ranked
    • Joined on 10-19-2010
    • Posts 1

    Re: Error message : Object reference not set to an instance of an object

    Do you solve your problem? I have the same problem too.
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems