This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi,
I'm new to speedlight.
I try to create a simple project using SQlite database.
I've created a database with the designer and I've got an error when I run my program:
'Mindscape.LightSpeed.LightSpeedContext.Default' threw an exception of type 'System.TypeInitializationException'
with this inner execption: "Requested value 'Sqlite3' was not found."
on the line LightSpeedContext context = new LightSpeedContext("Development");
here is the code I used:
My App.config:
My Code:
using System;
using System.Collections.Generic;
using System.Text;
using Mindscape.LightSpeed;
namespace lightspeedtest
{
class Class1
{
static void Main()
{
LightSpeedContext context = new LightSpeedContext("Development");
using (var unitOfWork = context.CreateUnitOfWork())
{
.....
any idea on how to solve this?
|
|
|
Hi,
I'm new to speedlight.
I try to create a simple project using SQlite database.
I've created a database with the designer and I've got an error when I run my program:
'Mindscape.LightSpeed.LightSpeedContext.Default' threw an exception of type 'System.TypeInitializationException'
with this inner execption: "Requested value 'Sqlite3' was not found."
(sorry for the bad layout of my previous post (pasting code don't works on google chrome)
any idea on how to solve this?
|
|
|
In your app.config, try changing dataProvider="Sqlite3" to dataProvider="SQLite3" (i.e. changing the capitalisation). (This shouldn't really be case sensitive so we'll get this fixed in a future release.) |
|