Reputation: 11
I have a C# 4.0 MVC 2 application using nUnit 2.5, nHibernate 2.1.
I have a TestFixture that passes when ran locally (Windows 7 (64bit)), but fails when is compiled on the build server (Windows Server 2003 (64bit))
The code that the test fails on is defined in the [SetUp]:
_session = NHibernateSession.GetDefaultSessionFactory().OpenSession();
new SchemaExport(configuration).Execute(false, true, false, _session.Connection, null);
The error I get is:
Database was not configured through Database method. ----> Hibernate.HibernateException : Could not create the driver from NHibernate.Driver.SQLite20Driver.
Any help would be greatly appreciated!!
Thanks
Upvotes: 0
Views: 172
Reputation: 27944
You have to install SQLite on the server which is running the unit test. Or at least add the dll to the gac.
Upvotes: 0