Hi there!
First of all, I'd like to say thanks for the great work on System.Data.SQLite!
I have the same problem as Amol has.
On local machine, the app runs fine.
On any other pc (Where I installed the app via setup project), I get an error message about the not found provider (not present or not installed). Normally, the app would crash like Amols, but I catched the error like this:
try
{
if (_DB == null)
{
_DB = new vidlibdbEntities();
_DB.SavingChanges += new EventHandler(_DB_SavingChanges);
}
}
catch (Exception ex)
{
throw new Exception(ex.Message, ex.InnerException);
}
I used App.config to set the provider:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="vidlibdbEntities" connectionString="metadata=res://*/vdb.csdl|res://*/vdb.ssdl|res://*/vdb.msl;provider=System.Data.SQLite;provider connection string="data source=vidlibdb.s3db"" providerName="System.Data.EntityClient" />
</connectionStrings>
</configuration>
I tried a tool to list all the dlls my app is using locally, there I found links or dependencies to System.Data.SQLite (MSIL) and System.Data.SQLite.linq (MSIL) in C:\Windows\assembly folder.
That is why the app does not start on any other pc, right?
Only after installing visual studio sp1 on a virtualpc for testing and registering System.Data.SQLite 1.0.60.0 for designer-support, the app works fine.
So, what is wrong with our setting?