SHARE
TWEET

Untitled

a guest May 5th, 2012 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Annoying error on summer of nhibernate screencast
  2. public void GetMyTestDataXMLFile()
  3. {
  4.     SaveTestDatabase();
  5. }
  6.        
  7. Test Report: file:///C:/Users/pina/AppData/Local/Temp/Gallio/TDNetRunner/Report/DataAccessLayerTest.dll.html
  8. ** NO TESTS WERE RUN (No tests found) **
  9. Test 'M:DataAccessLayerTest.Tests.GetMyTestDataXMLFile' failed: SqlDbCommandBuilder.CreateSelectCommand(DataSet, string) failed for tableName = 'Customer'
  10.     NDbUnit.Core.NDbUnitException: SqlDbCommandBuilder.CreateSelectCommand(DataSet, string) failed for tableName = 'Customer' ---> 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
  11.     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
  12.     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
  13.     at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity)
  14.     at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
  15.     at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)
  16.     at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
  17.     at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
  18.     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
  19.     at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
  20.     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
  21.     at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
  22.     at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
  23.     at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
  24.     at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
  25.     at System.Data.SqlClient.SqlConnection.Open()
  26.     at NDbUnit.Core.SqlClient.SqlDbCommandBuilder.getSchemaTable(SqlCommand sqlSelectCommand)
  27.     at NDbUnit.Core.SqlClient.SqlDbCommandBuilder.CreateSelectCommand(DataSet ds, String tableName)
  28.        --- End of inner exception stack trace ---
  29.     at NDbUnit.Core.SqlClient.SqlDbCommandBuilder.CreateSelectCommand(DataSet ds, String tableName)
  30.     at NDbUnit.Core.DbCommandBuilder.BuildCommands(Stream xmlSchema)
  31.     at NDbUnit.Core.NDbUnitTest.ReadXmlSchema(Stream xmlSchema)
  32.     at NDbUnit.Core.NDbUnitTest.ReadXmlSchema(String xmlSchemaFile)
  33.     at Microdesk.Utility.UnitTest.DatabaseUnitTestBase.SaveDatabase(String connectionString, String schemaFilePathName, String datasetFilePathName, DatabaseClientType clientType)
  34.     at Microdesk.Utility.UnitTest.DatabaseUnitTestBase.SaveTestDatabase()
  35.     TestClass1.cs(291,0): at DataAccessLayerTest.Tests.GetMyTestDataXMLFile()
  36.        
  37. <?xml version="1.0"?>
  38. <configuration>
  39.     <configSections>
  40.     </configSections>
  41.     <connectionStrings>
  42.         <add name="testDatabase"
  43.              connectionString="Data Source=H:CodeNHibernateSampleDataAccessLayerFirstSample.sdf"
  44.              providerName="Microsoft.SqlServerCe.Client.3.5"/>
  45.     </connectionStrings>
  46. </configuration>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top