Did you change this connection string? http://svn.castleproject.org:8080/svn/castle/trunk/ActiveRecord/Castle.ActiveRecord.Framework.Internal.Tests/App.config
On Jul 13, 7:40 pm, V <[email protected]> wrote: > Hi all, > > I update my local copy of trunk every week-end and create a new build. > But I have noticed that even if I pass my own connection string (as > stated in How to build.txt) the unit test for Castle FRamework > Internal dll fail because of absence of default instance of sql server > (with test database). I have .\SQLEXPRESS (and two database test and > test2 as required). > > I tried using sqlite also (thinking it might make tests not require > SQL server at all) but still there is error (As posted after the > parameters shown below for nant). > > Can somebody point out my mistake? > > Thanks Vijay > > -D:ar.dialect=NHibernate.Dialect.SQLiteDialect - > D:ar.connection.driver_class=NHibernate.Driver.SQLiteDriver > -D:ar.connection.connection_string.1="Data Source=s:\temp\trash > \test1.db3;" > -D:ar.connection.connection_string.2="Data Source=s:\temp\trash > \test2.db3;" > -l:%TEMP%\build.log.txt -t:net-3.5 > -D:nunit-console="%base%\SharedLibs\build\NUnit\bin\nunit-console.exe" > > Here %base% represents the base folder where trunk is persent. > > Error (only the last part of log file) > > common.compile-dll: > > [csc] Compiling 71 files to 'S:\000- > CuttingEdgeLibs\AR\build\net-3.5\release > \Castle.ActiveRecord.Framework.Internal.Tests.dll'. > [copy] Copying 1 file to 'S:\000- > CuttingEdgeLibs\AR\build\net-3.5\release > \Castle.ActiveRecord.Framework.Internal.Tests.dll.config'. > > common.configure-tests: > > [attrib] Setting file attributes for 1 > files to Normal. > [xmlpoke] No matching nodes were found with > XPath expression '/configuration/appSettings/a...@key='tests.src']/ > @value'. > > common.run-tests: > > [echo] Running tests in > 'Castle.ActiveRecord.Framework.Internal.Tests' > [exec] ProcessModel: Default > DomainUsage: Single > [exec] Execution Runtime: > net-2.0.50727.3082 > > [exec] > ...F.......................N.........N..................................... .. > [exec] Tests run: 72, Errors: 1, > Failures: 0, Inconclusive: 0 Time: 18.296875 seconds > [exec] Not run: 2, Invalid: 0, Ignored: > 2, Skipped: 0 > [exec] > [exec] Errors and Failures: > [exec] 1) Test Error : > Castle.ActiveRecord.Framework.Internal.Tests.AssemblyXmlGenerationTestCase. > WillUseRegisteredAssembliesToLookForRawMappingXmlEvenIfThereAreNoActiveReco > rdTypesInThatAssembly > [exec] > System.Data.SqlClient.SqlException : A network-related or instance- > specific error occurred while establishing a connection to SQL Server. > The 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 - Could > not open a connection to SQL Server) > [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 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean > integratedSecurity, SqlConnection owningObject) > [exec] at > System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin > (ServerInfo serverInfo, String newPassword, Boolean > ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) > [exec] at > System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String > host, String newPassword, Boolean redirectedUserInstance, > SqlConnection owningObject, SqlConnectionString connectionOptions, > Int64 timerStart) > [exec] at > System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist > (SqlConnection owningObject, SqlConnectionString connectionOptions, > String newPassword, Boolean redirectedUserInstance) > [exec] at > System.Data.SqlClient.SqlInternalConnectionTds..ctor > (DbConnectionPoolIdentity identity, SqlConnectionString > connectionOptions, Object providerInfo, String newPassword, > SqlConnection owningObject, Boolean redirectedUserInstance) > [exec] at > System.Data.SqlClient.SqlConnectionFactory.CreateConnection > (DbConnectionOptions options, Object poolGroupProviderInfo, > DbConnectionPool pool, DbConnection owningConnection) > [exec] at > System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection > (DbConnection owningConnection, DbConnectionPool pool, > DbConnectionOptions options) > [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.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.ActiveRecord.Framework.SessionFactoryHolder.GetSessionFactory > (Type type) in s:\000-CuttingEdgeLibs\AR\ActiveRecord > \Castle.ActiveRecord\Framework\SessionFactoryHolder.cs:line 135 > [exec] at > Castle.ActiveRecord.Framework.Internal.Tests.AssemblyXmlGenerationTestCase. > WillUseRegisteredAssembliesToLookForRawMappingXmlEvenIfThereAreNoActiveReco > rdTypesInThatAssembly > () in s:\000-CuttingEdgeLibs\AR\ActiveRecord > \Castle.ActiveRecord.Framework.Internal.Tests > \AssemblyXmlGenerationTestCase.cs:line 65 > [exec] > [exec] > [exec] Tests Not Run: > [exec] 1) Ignored : > Castle.ActiveRecord.Framework.Internal.Tests.SemanticCheckTestCase.UsingAny > WithoutSpecifyingTheMetaType > [exec] meta-type is optional > [exec] 2) Ignored : > Castle.ActiveRecord.Framework.Internal.Tests.XmlGenerationTestCase.Composit > eClassWithBelongsTo > [exec] This is not implemented yet > [exec] > > BUILD FAILED - 0 non-fatal error(s), 1 warning > (s) > > 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 1) > > Total time: 21.1 seconds. > > BUILD FAILED > > Nested build failed. Refer to build log for exact reason. > > Total time: 26 seconds. > > BUILD FAILED > > Nested build failed. Refer to build log for exact reason. > > Total time: 148.9 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 -~----------~----~----~----~------~----~------~--~---
