-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Could not create the driver from NHibernate.Driver.SQLite20
PostPosted: Sun Sep 02, 2007 8:52 pm 
Newbie

Joined: Sun Sep 02, 2007 8:46 pm
Posts: 2
Hibernate version: 1.2.0 GA


Full stack trace of any exception that occurs:
at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
at NHibernate.Connection.ConnectionProvider.Configure(IDictionary settings)
at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary settings)
at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean export, Boolean justDrop, Boolean format)
at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean export)
at Castle.ActiveRecord.ActiveRecordStarter.CreateSchema()


Name and version of the database you are using:
SQLite provider for .net2.0 (phxsoftware.com)



Message:
Could not create the driver from NHibernate.Driver.SQLite20Driver


My config keys
<add key="hibernate.dialect"
value="NHibernate.Dialect.SQLiteDialect" />

<add key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />

<add key="hibernate.connection.driver_class"
value="NHibernate.Driver.SQLite20Driver" />

<add key="hibernate.connection.connection_string"
value="Data Source=app.db;Version=3" />

<add key="hibernate.query.substitutions"
value="true=1;false=0" />



No matter what i try, i add references, tried sample projects and even reached the boundary in google's results where all pages are chinese...

i can't get this done..
i've looked at all the other guys here, in the Castle ActiveRecord forums and at the SQL provider forums... and tried the solutions, doesnt work


please help


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 03, 2007 2:49 am 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
Try changing this value
Quote:

<add key="hibernate.connection.connection_string"
value="Data Source=app.db;Version=3" />


To this
Code:
Data Source=app.db;Version=3;New=True;


Good luck
MIKE

_________________
If this helped...please remember to rate it!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 03, 2007 5:41 am 
Newbie

Joined: Sun Sep 02, 2007 8:46 pm
Posts: 2
didn't work, same exception :(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 23, 2007 12:40 pm 
Newbie

Joined: Sun Dec 23, 2007 11:34 am
Posts: 2
If you have issue with locating System.Data.SQLite assembly, try to set Copy Local at true on the assembly reference in visual studio.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 2:30 pm 
Newbie

Joined: Wed Mar 12, 2008 2:23 pm
Posts: 1
Just in case any one is interested: I had the same problem and it was solved by doing what gauthier suggested (I guess the alternative would be to add the directory containing the SQLite assembly to the reference paths of the project)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.