Hi
I am working on the process of making the unit tests pass for custom
database connection strings passed. I saw that
Castle.MonoRail.ActiveRecordSupport.Tests.build was also failing if I
used custom connection strings. So here is my patch if any developer
could apply that.
Also Castle.Facilities.NHibernateIntegration.Tests is failing even
though I tried to fix the build script for that. The log is provided
after the patch. Not all the tests fail only some of them.
One that gets fixed I will try to see more areas until all tests work
with custom connection strings.
Vijay
**** patch start
Index: MonoRail/Castle.MonoRail.ActiveRecordSupport.Tests/
Castle.MonoRail.ActiveRecordSupport.Tests.build
===================================================================
--- MonoRail/Castle.MonoRail.ActiveRecordSupport.Tests/
Castle.MonoRail.ActiveRecordSupport.Tests.build (revision 5865)
+++ MonoRail/Castle.MonoRail.ActiveRecordSupport.Tests/
Castle.MonoRail.ActiveRecordSupport.Tests.build (working copy)
@@ -35,8 +35,28 @@
</assemblyfileset>
</target>
+ <target name="configure-tests">
+ <property name="app.config"
value="${build.dir}/${project::get-name
()}.dll.config" />
+ <xmlpoke
+ file="${app.config}"
+
xpath="/configuration/activerecord/config/a...@key='dialect']/
@value"
+ value="${ar.dialect}"
+ />
+ <xmlpoke
+ file="${app.config}"
+ xpath="/configuration/activerecord/config/add
[...@key='connection.driver_class']/@value"
+ value="${ar.connection.driver_class}"
+ />
+ <xmlpoke
+ file="${app.config}"
+ xpath="/configuration/activerecord/config/add
[...@key='connection.connection_string']/@value"
+ value="${ar.connection.connection_string.1}"
+ />
+
+ </target>
+
<target name="generate-assemblyinfo" depends="init common.generate-
assemblyinfo" />
- <target name="test" depends="init generate-assemblyinfo
common.compile-tests common.run-tests" description="Runs the tests" />
+ <target name="test" depends="init generate-assemblyinfo
common.compile-tests configure-tests common.run-tests"
description="Runs the tests" />
</project>
**** patch end
Log is given below:
common.run-tests:
[echo] Running tests in
'Castle.Facilities.NHibernateIntegration.Tests'
[exec] ProcessModel:
Default DomainUsage: Single
[exec] Execution Runtime:
net-2.0.50727.3082
[exec]
...............................F.F.............F.F......F.F.F..................
[exec] Tests run: 72, Errors:
7, Failures: 0, Inconclusive: 0 Time: 59.921875 seconds
[exec] Not run: 0, Invalid:
0, Ignored: 0, Skipped: 0
[exec]
[exec] Errors and Failures:
[exec] 1) TearDown Error :
Castle.Facilities.NHibernateIntegration.Tests.Internals.CustomConfigurationBuilderTestCase.Invoked
[exec]
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The
server w
s not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not o
en a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] TearDown :
System.Reflection.TargetInvocationException : Exception has been
thrown by the target of an invocation.
[exec] ---->
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.ExportDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiber
ateIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 46
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.SetUp
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegration
Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 65
[exec] --SqlException
[exec] at
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
[exec] at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning
(TdsParserStateObject stateObj)
[exec] at
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo,
SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout,
Int64 timer
xpire, Boolean encrypt, Boolean trustServerCert, Boolean
integratedSecurity, SqlConnection owningObject)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin
(ServerInfo serverInfo, String newPassword, Boolean
ignoreSniOpenTimeout, Int64
imerExpire, SqlConnection owningObject)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
host, String newPassword, Boolean redirectedUserInstance,
SqlConnection
wningObject, SqlConnectionString connectionOptions, Int64 timerStart)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist
(SqlConnection owningObject, SqlConnectionString connectionOptions,
String newPa
sword, Boolean redirectedUserInstance)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds..ctor
(DbConnectionPoolIdentity identity, SqlConnectionString
connectionOptions, Object provider
nfo, String newPassword, SqlConnection owningObject, Boolean
redirectedUserInstance)
[exec] at
System.Data.SqlClient.SqlConnectionFactory.CreateConnection
(DbConnectionOptions options, Object poolGroupProviderInfo,
DbConnectionPool pool,
bConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection
(DbConnection owningConnection, DbConnectionPool pool,
DbConnectionOptions
ptions)
[exec] at
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest
(DbConnection owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] --TearDown
[exec] at
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
Runti
eTypeHandle typeOwner)
[exec] at
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHa
dle typeOwner)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boole
n skipVisibilityChecks)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[exec] at
NUnit.Core.TestMethod.doTearDown(TestResult testResult)
[exec] --HibernateException
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Drop(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.DropDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiberna
eIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 55
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.TearDown
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegrat
on\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 74
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec]
[exec] 2) TearDown Error :
Castle.Facilities.NHibernateIntegration.Tests.Internals.CustomConfigurationBulderRegressionTestCase.Invoked
[exec]
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The
server w
s not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not o
en a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] TearDown :
System.Reflection.TargetInvocationException : Exception has been
thrown by the target of an invocation.
[exec] ---->
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.ExportDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiber
ateIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 46
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.SetUp
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegration
Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 65
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] --TearDown
[exec] at
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
Runti
eTypeHandle typeOwner)
[exec] at
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHa
dle typeOwner)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boole
n skipVisibilityChecks)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[exec] at
NUnit.Core.TestMethod.doTearDown(TestResult testResult)
[exec] --HibernateException
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Drop(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.DropDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiberna
eIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 55
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.TearDown
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegrat
on\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 74
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec]
[exec] 3) TearDown Error :
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities102.Fixture.HasAliassedSessionHasFlushModeSet
[exec]
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The
server w
s not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not o
en a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] TearDown :
System.Reflection.TargetInvocationException : Exception has been
thrown by the target of an invocation.
[exec] ---->
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.ExportDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiber
ateIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 46
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.SetUp
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegration
Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 65
[exec] --SqlException
[exec] at
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
[exec] at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning
(TdsParserStateObject stateObj)
[exec] at
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo,
SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout,
Int64 timer
xpire, Boolean encrypt, Boolean trustServerCert, Boolean
integratedSecurity, SqlConnection owningObject)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin
(ServerInfo serverInfo, String newPassword, Boolean
ignoreSniOpenTimeout, Int64
imerExpire, SqlConnection owningObject)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
host, String newPassword, Boolean redirectedUserInstance,
SqlConnection
wningObject, SqlConnectionString connectionOptions, Int64 timerStart)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist
(SqlConnection owningObject, SqlConnectionString connectionOptions,
String newPa
sword, Boolean redirectedUserInstance)
[exec] at
System.Data.SqlClient.SqlInternalConnectionTds..ctor
(DbConnectionPoolIdentity identity, SqlConnectionString
connectionOptions, Object provider
nfo, String newPassword, SqlConnection owningObject, Boolean
redirectedUserInstance)
[exec] at
System.Data.SqlClient.SqlConnectionFactory.CreateConnection
(DbConnectionOptions options, Object poolGroupProviderInfo,
DbConnectionPool pool,
bConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection
(DbConnection owningConnection, DbConnectionPool pool,
DbConnectionOptions
ptions)
[exec] at
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest
(DbConnection owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] --TearDown
[exec] at
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
Runti
eTypeHandle typeOwner)
[exec] at
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHa
dle typeOwner)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boole
n skipVisibilityChecks)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[exec] at
NUnit.Core.TestMethod.doTearDown(TestResult testResult)
[exec] --HibernateException
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Drop(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.DropDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiberna
eIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 55
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.TearDown
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegrat
on\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 74
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec]
[exec] 4) TearDown Error :
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities102.Fixture.SessionHasFlushModeSet
[exec]
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The
server w
s not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not o
en a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] TearDown :
System.Reflection.TargetInvocationException : Exception has been
thrown by the target of an invocation.
[exec] ---->
NHibernate.HibernateException : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] ---->
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
Th
server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - C
uld not open a connection to SQL Server)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Create(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.ExportDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiber
ateIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 46
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.SetUp
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegration
Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 65
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] --TearDown
[exec] at
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
Runti
eTypeHandle typeOwner)
[exec] at
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHa
dle typeOwner)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boole
n skipVisibilityChecks)
[exec] at
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[exec] at
NUnit.Core.TestMethod.doTearDown(TestResult testResult)
[exec] --HibernateException
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Boolean script, Boolean
export, Boolean justDrop)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Drop(Boolean script, Boolean
export)
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.DropDatabaseSchema
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHiberna
eIntegration\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 55
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.AbstractNHibernateTestCase.TearDown
() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegrat
on\Castle.Facilities.NHibernateIntegration.Tests
\AbstractNHibernateTestCase.cs:line 74
[exec] --SqlException
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction,
Boolean export, Boolean justDrop)
[exec]
[exec] 5) Test Error :
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_create_serialized_file_in_the_disk
[exec]
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare
()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
dialect, IConnectionHelper connectionHelper)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
sessionFactory)
[exec] at
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
mapping, Settings settings, EventListeners listeners)
[exec] at
NHibernate.Cfg.Configuration.BuildSessionFactory()
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_create_serialized_file_in_the_disk
() in s:\000-CuttingEdgeLibs\
R\Facilities\NHibernateIntegration
\Castle.Facilities.NHibernateIntegration.Tests\Issues
\Facilities116\Fixture.cs:line 60
[exec]
[exec] 6) Test Error :
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_deserialize_file_from_the_disk_if_new_enough
[exec]
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare
()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
dialect, IConnectionHelper connectionHelper)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
sessionFactory)
[exec] at
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
mapping, Settings settings, EventListeners listeners)
[exec] at
NHibernate.Cfg.Configuration.BuildSessionFactory()
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_deserialize_file_from_the_disk_if_new_enough
() in s:\000-Cuttin
EdgeLibs\AR\Facilities\NHibernateIntegration
\Castle.Facilities.NHibernateIntegration.Tests\Issues
\Facilities116\Fixture.cs:line 74
[exec]
[exec] 7) Test Error :
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_deserialize_file_from_the_disk_if_one_of_the_dependen
ies_is_newer
[exec]
System.Data.SqlClient.SqlException : A network-related or instance-
specific error occurred while establishing a connection to SQL Server.
The ser
er was not found or was not accessible. Verify that the instance name
is correct and that SQL Server is configured to allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could
ot open a connection to SQL Server)
[exec] at
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
owningObject)
[exec] at
System.Data.ProviderBase.DbConnectionFactory.GetConnection
(DbConnection owningConnection)
[exec] at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection
(DbConnection outerConnection, DbConnectionFactory connectionFactory)
[exec] at
System.Data.SqlClient.SqlConnection.Open()
[exec] at
NHibernate.Connection.DriverConnectionProvider.GetConnection()
[exec] at
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare
()
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
dialect, IConnectionHelper connectionHelper)
[exec] at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
sessionFactory)
[exec] at
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
mapping, Settings settings, EventListeners listeners)
[exec] at
NHibernate.Cfg.Configuration.BuildSessionFactory()
[exec] at
Castle.Facilities.NHibernateIntegration.Tests.Issues.Facilities116.Fixture.Can_deserialize_file_from_the_disk_if_one_of_the_dependencies_is_ne
er() in s:\000-CuttingEdgeLibs\AR\Facilities\NHibernateIntegration
\Castle.Facilities.NHibernateIntegration.Tests\Issues
\Facilities116\Fixture.cs:line 91
[exec]
[exec]
BUILD FAILED
S:\000-CuttingEdgeLibs\AR\common-
project.xml(266,5):
External Program Failed: S:\000-
CuttingEdgeLibs\AR\SharedLibs\build\NUnit\bin\nunit-console.exe
(return code was 7)
Total time: 64.8 seconds.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---