Hi, I'm trying to get the System.Data.SQLite DBFactory working in a web application.
I'm using VS2008 Pro and my dev machine is Windows Server 2008 (x64).
I've downloaded and run the executable file and have design time support for VS2008 - I can access a SQLite database using VS2008. I know I'm using the right .DLL for x64 as I've got another web application that works fine with the DLL.
I've added the following to the web.config file:-
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite"/>
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite"
type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
</DbProviderFactories>
</system.data>
And I've seen the DBFactory references in the machine.config files to be found in c:\windows\microsoft.net\framework\v2.0.50727 and c:\windows\microsoft.net\framework64\v2.0.50727 though I have the 3.5 framework installed anyway so I'm not sure if that has any affect.
I've tried to read the help files on both Windows Server 2008 and a Vista machine but for some reason I get the error "Navigation to the webpage was canceled" when I try to view any help page on both machines - so I can't refer to the documentation in this case. I'm literally going insane with this. Maybe you know what is coming next, but I'll say it anyway...
I'm getting that damned error... "Unable to find the requested .NET Framework Data Provider. It may not be installed" I'm reduced to just trying to get the thing to print out onto the screen... here is my code as it is now... although I've tried lots of variations on this...
string providerName = "SQLite Data Provider";
string provider = DbProviderFactories.GetFactory(providerName).ToString(); Response.Write(provider);
this doesn't work either "DbProviderFactory factory = DbProviderFactories.GetFactory("SQLite Data Provider");", or this
string providerName = "SQLite Data Provider";
DbProviderFactory provider = DbProviderFactories.GetFactory(providerName);
Please help if you can... my sanity depends upon it!!!!
Thanks in advance.