1

Closed

Attached database tests consistently fail when running build.cmd

description

Attached database tests are disabled since they consistently fail for me when running build.cmd.

They seem to work when run in Visual Studio.

The tests are disabled to unblock checking in pull requests.
Closed Apr 26, 2013 at 11:30 PM by ajcvickers
1e78d89941de

Re-enabling tests. Issue was use of SQL Server 2008 (which is flakey with attached files) instead of SQL Server 2012.

comments

ajcvickers wrote Apr 25, 2013 at 9:06 PM

CodePlex won't let me put all the information in one comment, so the following commenst contain example stack traces:

C:\ef\tools\EF.xunit.targets(16,9): error : ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_existin
g_attached_database_without_InitialCatalog_when_no_master_nor_database_permission: System.Data.DataException : An excep
tion occurred while initializing the database. See the InnerException for details.
C:\ef\tools\EF.xunit.targets(16,9): error : ---- System.Data.Entity.Core.EntityException : The underlying provider fail
ed on Open.
C:\ef\tools\EF.xunit.targets(16,9): error : -------- System.Data.SqlClient.SqlException : Database 'C:\ef\test\EntityFr
amework\FunctionalTests\bin\Debug\ProductivityApiTests.DatabaseTests+AttachedContext.mdf' already exists. Choose a diff
erent database name.
C:\ef\tools\EF.xunit.targets(16,9): error : Cannot attach the file 'C:\ef\test\EntityFramework\FunctionalTests\bin\Rele
ase\ProductivityApiTests.DatabaseTests+AttachedContext.mdf' as database 'ProductivityApiTests.DatabaseTests+AttachedCon
text'.
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 358
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitializa
tion() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 546
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_e
xisting_attached_database_when_no_master_nor_database_permission(Boolean useInitialcatalog) in c:\ef\test\EntityFramewo
rk\FunctionalTests\ProductivityApi\DatabaseTests.cs:line 399
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_e
xisting_attached_database_without_InitialCatalog_when_no_master_nor_database_permission() in c:\ef\test\EntityFramework
\FunctionalTests\ProductivityApi\DatabaseTests.cs:line 391
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 596
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection() in c
:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 1589
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T]
(Func1 func, Boolean throwOnExistingTransaction, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) in
c:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 3128
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery
1.<>c__DisplayClassb.<Get
Results>b__9() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery.cs:line 730
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func
1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 54
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 f
orMergeOption) in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery.cs:line 729
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery
1.<System.Collections.Gen
eric.IEnumerable<T>.GetEnumerator>b__0() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery.cs:line 563
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy
1.CreateValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy1.LazyInitValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy
1.get_Value()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.LazyEnumerator1.MoveNext() in c:\ef\src\
EntityFramework\Internal\LazyEnumerator
.cs:line 38
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElement
Function>b__1[TResult](IEnumerable
1 sequence) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvider.cs:l
ine 230
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSing
le[TResult](IEnumerable1 query, Expression queryRoot) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvi
der.cs:line 214
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq
.IQueryProvider.Execute[TResult](Expression expression) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProv
ider.cs:line 127
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Exp
ression expression) in c:\ef\src\EntityFramework\Internal\Linq\DbQueryProvider.cs:line 91
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable
1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.EdmMetadataRepository.QueryForModelHash(F
unc2 createContext) in c:\ef\src\EntityFramework\Internal\EdmMetadataRepository.cs:line 18
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.QueryForModelHash() in c:
\ef\src\EntityFramework\Internal\InternalContext.cs:line 288
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithM
odel(InternalContext internalContext, ModelHashCalculator modelHashCalculator, Boolean throwIfNoMetadata) in c:\ef\src\
EntityFramework\Internal\ModelCompatibilityChecker.cs:line 33
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.CompatibleWithModel(Boole
an throwIfNoMetadata) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 267
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.CreateDatabaseIfNotExists
1.InitializeDatabase(TCo
ntext context) in c:\ef\src\EntityFramework\CreateDatabaseIfNotExists.cs:line 40
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.<>c__DisplayClassc
1.<Cre
ateInitializationAction>b__b() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 560
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 352
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectio
nOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConne
ction owningConnection, TaskCompletionSource
1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection
)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConne
ction outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOpt
ions)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource
1 re
try)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.Open()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__Display
Class1.<Execute>b__0() in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 31
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func`1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 54
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Acti
on action) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 28
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 589

ajcvickers wrote Apr 25, 2013 at 9:07 PM

C:\ef\tools\EF.xunit.targets(16,9): error : ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_existin
g_attached_database_with_InitialCatalog_when_no_master_nor_database_permission: System.Data.DataException : An exceptio
n occurred while initializing the database. See the InnerException for details.
C:\ef\tools\EF.xunit.targets(16,9): error : ---- System.Data.Entity.Core.EntityException : An exception has been raised
that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzureExecut
ionStrategy.
C:\ef\tools\EF.xunit.targets(16,9): error : -------- System.Data.Entity.Core.EntityException : The underlying provider
failed on Open.
C:\ef\tools\EF.xunit.targets(16,9): error : ------------ System.Data.Entity.Core.EntityException : An exception has bee
n raised that is likely due to a transient failure. If you are connecting to a SQL Azure database consider using SqlAzu
reExecutionStrategy.
C:\ef\tools\EF.xunit.targets(16,9): error : ---------------- System.Data.SqlClient.SqlException : A connection was succ
essfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Pro
vider, error: 0 - No process is on the other end of the pipe.)
C:\ef\tools\EF.xunit.targets(16,9): error : -------------------- System.ComponentModel.Win32Exception : No process is o
n the other end of the pipe
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 358
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitializa
tion() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 546
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_e
xisting_attached_database_when_no_master_nor_database_permission(Boolean useInitialcatalog) in c:\ef\test\EntityFramewo
rk\FunctionalTests\ProductivityApi\DatabaseTests.cs:line 399
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.DatabaseExists_returns_false_for_e
xisting_attached_database_with_InitialCatalog_when_no_master_nor_database_permission() in c:\ef\test\EntityFramework\Fu
nctionalTests\ProductivityApi\DatabaseTests.cs:line 385
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 51
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery
1.GetResults(Nullable1 f
orMergeOption) in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 729
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery1.<System.Collections.Gen
eric.IEnumerable<T>.GetEnumerator>b__0() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 563
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy1.CreateValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy
1.LazyInitValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy1.get_Value()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.LazyEnumerator
1.MoveNext() in c:\ef\src\
EntityFramework\Internal\LazyEnumerator.cs:line 38
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElement
Function>b__1[TResult](IEnumerable1 sequence) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvider.cs:l
ine 230
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSing
le[TResult](IEnumerable
1 query, Expression queryRoot) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvi
der.cs:line 214
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq
.IQueryProvider.Execute[TResult](Expression expression) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProv
ider.cs:line 127
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Exp
ression expression) in c:\ef\src\EntityFramework\Internal\Linq\DbQueryProvider.cs:line 91
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.EdmMetadataRepository.QueryForModelHash(F
unc
2 createContext) in c:\ef\src\EntityFramework\Internal\EdmMetadataRepository.cs:line 18
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.QueryForModelHash() in c:
\ef\src\EntityFramework\Internal\InternalContext.cs:line 288
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithM
odel(InternalContext internalContext, ModelHashCalculator modelHashCalculator, Boolean throwIfNoMetadata) in c:\ef\src\
EntityFramework\Internal\ModelCompatibilityChecker.cs:line 33
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.CompatibleWithModel(Boole
an throwIfNoMetadata) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 267
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.CreateDatabaseIfNotExists1.InitializeDatabase(TCo
ntext context) in c:\ef\src\EntityFramework\CreateDatabaseIfNotExists
.cs:line 40
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.<>c__DisplayClassc1.<Cre
ateInitializationAction>b__b() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 560
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 352
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 596
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection() in c
:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 1589
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T]
(Func
1 func, Boolean throwOnExistingTransaction, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) in
c:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 3128
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery1.<>c__DisplayClassb.<Get
Results>b__9() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 730
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 45
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func
1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 51
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Acti
on action) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 28
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 589
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectio
nOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConne
ction owningConnection, TaskCompletionSource
1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection
)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConne
ction outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOpt
ions)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource
1 re
try)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.Open()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__Display
Class1.<Execute>b__0() in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 31
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func`1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 45
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error :

ajcvickers wrote Apr 25, 2013 at 9:07 PM

C:\ef\tools\EF.xunit.targets(16,9): error : ProductivityApiTests.DatabaseTests.Can_delete_attached_database_with_Initia
lCatalog_if_exists_using_Database_obtained_from_context: System.Data.DataException : An exception occurred while initia
lizing the database. See the InnerException for details.
C:\ef\tools\EF.xunit.targets(16,9): error : ---- System.Data.Entity.Core.EntityException : The underlying provider fail
ed on Open.
C:\ef\tools\EF.xunit.targets(16,9): error : -------- System.Data.SqlClient.SqlException : Database 'C:\ef\test\EntityFr
amework\FunctionalTests\bin\Debug\ProductivityApiTests.DatabaseTests+AttachedContext.mdf' already exists. Choose a diff
erent database name.
C:\ef\tools\EF.xunit.targets(16,9): error : Cannot attach the file 'C:\ef\test\EntityFramework\FunctionalTests\bin\Rele
ase\ProductivityApiTests.DatabaseTests+AttachedContext.mdf' as database 'ProductivityApiTests.DatabaseTests+AttachedCon
text'.
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 358
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitializa
tion() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 546
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.<Can_delete_attached_database_if_e
xists_using_Database_obtained_from_context>b__22(AttachedContext context) in c:\ef\test\EntityFramework\FunctionalTests
\ProductivityApi\DatabaseTests.cs:line 557
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.AttachableDatabaseTest(Action1 te
stMethod, Boolean useInitialCatalog) in c:\ef\test\EntityFramework\FunctionalTests\ProductivityApi\DatabaseTests.cs:lin
e 73
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.Can_delete_attached_database_if_ex
ists_using_Database_obtained_from_context(Boolean useInitialCatalog) in c:\ef\test\EntityFramework\FunctionalTests\Prod
uctivityApi\DatabaseTests.cs:line 553
C:\ef\tools\EF.xunit.targets(16,9): error : at ProductivityApiTests.DatabaseTests.Can_delete_attached_database_with_
InitialCatalog_if_exists_using_Database_obtained_from_context() in c:\ef\test\EntityFramework\FunctionalTests\Productiv
ityApi\DatabaseTests.cs:line 542
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 596
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection() in c
:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 1589
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T]
(Func
1 func, Boolean throwOnExistingTransaction, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) in
c:\ef\src\EntityFramework\Core\Objects\ObjectContext.cs:line 3128
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery1.<>c__DisplayClassb.<Get
Results>b__9() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 730
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 54
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery
1.GetResults(Nullable1 f
orMergeOption) in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 729
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ObjectQuery1.<System.Collections.Gen
eric.IEnumerable<T>.GetEnumerator>b__0() in c:\ef\src\EntityFramework\Core\Objects\ObjectQuery
.cs:line 563
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy1.CreateValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy
1.LazyInitValue()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Lazy1.get_Value()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.LazyEnumerator
1.MoveNext() in c:\ef\src\
EntityFramework\Internal\LazyEnumerator.cs:line 38
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElement
Function>b__1[TResult](IEnumerable1 sequence) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvider.cs:l
ine 230
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSing
le[TResult](IEnumerable
1 query, Expression queryRoot) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProvi
der.cs:line 214
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq
.IQueryProvider.Execute[TResult](Expression expression) in c:\ef\src\EntityFramework\Core\Objects\ELinq\ObjectQueryProv
ider.cs:line 127
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Exp
ression expression) in c:\ef\src\EntityFramework\Internal\Linq\DbQueryProvider.cs:line 91
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable1 source)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.EdmMetadataRepository.QueryForModelHash(F
unc
2 createContext) in c:\ef\src\EntityFramework\Internal\EdmMetadataRepository.cs:line 18
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.QueryForModelHash() in c:
\ef\src\EntityFramework\Internal\InternalContext.cs:line 288
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithM
odel(InternalContext internalContext, ModelHashCalculator modelHashCalculator, Boolean throwIfNoMetadata) in c:\ef\src\
EntityFramework\Internal\ModelCompatibilityChecker.cs:line 33
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.CompatibleWithModel(Boole
an throwIfNoMetadata) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 267
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.CreateDatabaseIfNotExists1.InitializeDatabase(TCo
ntext context) in c:\ef\src\EntityFramework\CreateDatabaseIfNotExists
.cs:line 40
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.<>c__DisplayClassc1.<Cre
ateInitializationAction>b__b() in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 560
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Internal.InternalContext.PerformInitializationActi
on(Action action) in c:\ef\src\EntityFramework\Internal\InternalContext.cs:line 352
C:\ef\tools\EF.xunit.targets(16,9): error : ----- Inner Stack Trace -----
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectio
nOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnecti
on owningObject, TaskCompletionSource
1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConne
ction owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection
)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConne
ction outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource
1 retry, DbConnectionOptions userOpt
ions)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 re
try)
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.SqlClient.SqlConnection.Open()
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__Display
Class1.<Execute>b__0() in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 31
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TRes
ult](Func
1 func) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 54
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Acti
on action) in c:\ef\src\EntityFramework.SqlServer\DefaultSqlExecutionStrategy.cs:line 28
C:\ef\tools\EF.xunit.targets(16,9): error : at System.Data.Entity.Core.EntityClient.EntityConnection.Open() in c:\ef
\src\EntityFramework\Core\EntityClient\EntityConnection.cs:line 589