0
我有一個使用nUnit 2.5,nHibernate 2.1的C#4.0 MVC 2應用程序。在構建服務器上MVC2/nHibernate/nUnit測試失敗
我有當當地跑了通過一個的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作爲部署到生成服務器的一部分進行打包的方法嗎? – IanParr
您可以嘗試將其複製到bin目錄中。將該dll添加到源代碼管理並進行引用。我不確定它是否會起作用。 – Peter