TeamCity's NUnit runner cannot read System.Data.SQLite.DLL x64?

I'm running on Windows 7 x64 and try to run tests for Fluent NHibernate mappings by using System.Data.SQLite.DLL x64. The ReSharper's NUnit runner works fine, and all tests passed. But when I commit the code to server, TeamCity shows me this exception

TearDown method failed. SetUp : FluentNHibernate.Cfg.FluentConfigurationException : An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.


  ----> FluentNHibernate.Cfg.FluentConfigurationException : An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.


  ----> NHibernate.HibernateException : Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=3.0.0.2001, Culture=neutral, PublicKeyToken=aa95f207798dfdb4.
  ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
  ----> System.ArgumentException : Unable to find the requested .Net Framework Data Provider.  It may not be installed.
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
   at MvcStore.Service.Data.NHibernate.Tests.Mappings.MapTestsBase.Setup() in e:\Works\TeamCityBuildAgent\work\d2ee8a953e14419c\trunk\src\csharp\Service.Data.NHibernate.Tests\Mappings\MapTestsBase.cs:line 27
--FluentConfigurationException
   at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration()
   at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
--HibernateException
   at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2 settings)
   at NHibernate.Connection.ConnectionProvider.Configure(IDictionary`2 settings)
   at NHibernate.Connection.ConnectionProviderFactory.NewConnectionProvider(IDictionary`2 settings)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction, Boolean export, Boolean justDrop)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean export, Boolean justDrop)
   at NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean export)
   at MvcStore.Service.Data.NHibernate.Tests.Mappings.MapTestsBase.<Setup>b__0(Configuration cfg) in e:\Works\TeamCityBuildAgent\work\d2ee8a953e14419c\trunk\src\csharp\Service.Data.NHibernate.Tests\Mappings\MapTestsBase.cs:line 21
   at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration()
--TargetInvocationException
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at NHibernate.Bytecode.ActivatorObjectsFactory.CreateInstance(Type type)
   at NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary`2 settings)
--ArgumentException
   at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
   at NHibernate.Driver.ReflectionBasedDriver..ctor(String providerInvariantName, String driverAssemblyName, String connectionTypeName, String commandTypeName)
   at NHibernate.Driver.SQLite20Driver..ctor()
--TearDown
   at MvcStore.Service.Data.NHibernate.Tests.Mappings.MapTestsBase.TearDown() in e:\Works\TeamCityBuildAgent\work\d2ee8a953e14419c\trunk\src\csharp\Service.Data.NHibernate.Tests\Mappings\MapTestsBase.cs:line 35

0
1 comment
Avatar
Permanently deleted user

Grrr, it's my fault.

0

Please sign in to leave a comment.