开发者

MVC2 / nHibernate / nUnit Test Failed on Build Server

I have a C# 4.0 MVC 2 application using nUnit 2.5, nHibernat开发者_StackOverflow中文版e 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


You have to install SQLite on the server which is running the unit test. Or at least add the dll to the gac.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜