在生成服务器上MVC2/nHibernate/nUnit测试失败

在生成服务器上MVC2/nHibernate/nUnit测试失败,nhibernate,asp.net-mvc-2,nunit,64-bit,cvs,Nhibernate,Asp.net Mvc 2,Nunit,64 Bit,Cvs,我有一个使用nUnit 2.5和nHibernate 2.1的C4.0 MVC2应用程序 我有一个TestFixture,它在本地运行Windows 7 64位时通过,但在构建服务器Windows server 2003 64位上编译时失败 测试失败的代码在[设置]中定义: _session = NHibernateSession.GetDefaultSessionFactory().OpenSession(); new SchemaExport(configuration).Execute(f

我有一个使用nUnit 2.5和nHibernate 2.1的C4.0 MVC2应用程序

我有一个TestFixture,它在本地运行Windows 7 64位时通过,但在构建服务器Windows server 2003 64位上编译时失败

测试失败的代码在[设置]中定义:

_session = NHibernateSession.GetDefaultSessionFactory().OpenSession();
new SchemaExport(configuration).Execute(false, true, false, _session.Connection, null);
我得到的错误是:

Database was not configured through Database method. ----> Hibernate.HibernateException : Could not create the driver from NHibernate.Driver.SQLite20Driver. 
任何帮助都将不胜感激


谢谢

您必须在运行单元测试的服务器上安装SQLite。或者至少将dll添加到gac。

感谢您的回复。我不想沿着这条路走下去,允许简单地部署到其他服务器。您知道如何将SQLite dll打包为部署到生成服务器的一部分吗?您可以尝试将其复制到bin目录中。将dll添加到源代码管理并进行引用。我不确定它是否有效。