Error building Nuget Gallery Server

Aug 16, 2011 at 11:16 AM

Hi,

I'm trying to set up a local NUget Gallery Server, as described at Nuget Docs: http://docs.nuget.org/docs/contribute/setting-up-a-local-gallery. I've followed all the steps and everything was fine until I got to "3. In a console, change to the {clone-dir}\Services directory, then run ClickToBuildRelease.bat". It does not build and it's broken with 8 build errors. This is what I get:

Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.225]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

........... previous build messages ...........
  Running GalleryServer Unit Tests
  src\packages\NUnit.2.5.7.10213\Tools\nunit-console.exe src\Gallery.UnitTests\bin\Release\Gallery.UnitTests.dll /nologo /framework=4.0.30319 /xml:UnitTestResults.xml
  ProcessModel: Default    DomainUsage: Single
  Execution Runtime: v4.0.30319
  ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................
  Tests run: 452, Errors: 0, Failures: 0, Inconclusive: 0, Time: 3,4663466 seconds
    Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
  
  Running GalleryServer Integration Tests
  src\packages\NUnit.2.5.7.10213\Tools\nunit-console.exe src\Gallery.IntegrationTests\bin\Release\Gallery.IntegrationTests.dll /nologo /framework=4.0.30319 /xml:IntegrationTestResults.xml
  ProcessModel: Default    DomainUsage: Single
  Execution Runtime: v4.0.30319
  ................................F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F
  Tests run: 60, Errors: 0, Failures: 29, Inconclusive: 0, Time: 1,6921692 seconds
    Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
  
  Errors and Failures:
EXEC : 1) SetUp error : Gallery.IntegrationTests.RecommendedVersionManagerTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.RecommendedVersionManagerTester..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\RecommendedVersionManagerTester.cs:line 12
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  2) Parent Failure : Gallery.IntegrationTests.RecommendedVersionManagerTester.ShouldNotThrowAnException
     TestFixtureSetUp failed in RecommendedVersionManagerTester
EXEC : 3) SetUp error : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\DeletedPackageRepositoryTester.cs:line 10
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  4) Parent Failure : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in DeletedPackageRepositoryTester
  5) Parent Failure : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in DeletedPackageRepositoryTester
  6) Parent Failure : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in DeletedPackageRepositoryTester
  7) Parent Failure : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in DeletedPackageRepositoryTester
EXEC : 8) SetUp error : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\PackageDataAggregateRepositoryTester.cs:line 10
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  9) Parent Failure : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester.InsertingSecondAggregateWithDuplicatePackageIdShouldFail
     TestFixtureSetUp failed in PackageDataAggregateRepositoryTester
  10) Parent Failure : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in PackageDataAggregateRepositoryTester
  11) Parent Failure : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in PackageDataAggregateRepositoryTester
  12) Parent Failure : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in PackageDataAggregateRepositoryTester
  13) Parent Failure : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in PackageDataAggregateRepositoryTester
EXEC : 14) SetUp error : Gallery.IntegrationTests.Repositories.PackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.PackageRepositoryTester..ctor()
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  15) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in PackageRepositoryTester
  16) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in PackageRepositoryTester
  17) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in PackageRepositoryTester
  18) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in PackageRepositoryTester
  19) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.ShouldBeAbleToCreatePackageWithStringFieldGreaterThan128Characters
     TestFixtureSetUp failed in PackageRepositoryTester
  20) Parent Failure : Gallery.IntegrationTests.Repositories.PackageRepositoryTester.UpdatingMultiplePackagesShouldWork
     TestFixtureSetUp failed in PackageRepositoryTester
EXEC : 21) SetUp error : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester..ctor()
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  22) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester.CanSavePublishedPackageMappedFromPackage
     TestFixtureSetUp failed in PublishedPackageRepositoryTester
  23) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in PublishedPackageRepositoryTester
  24) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in PublishedPackageRepositoryTester
  25) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in PublishedPackageRepositoryTester
  26) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in PublishedPackageRepositoryTester
EXEC : 27) SetUp error : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\PublishedScreenshotRepositoryTester.cs:line 9
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  28) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in PublishedScreenshotRepositoryTester
  29) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in PublishedScreenshotRepositoryTester
  30) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in PublishedScreenshotRepositoryTester
  31) Parent Failure : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in PublishedScreenshotRepositoryTester
EXEC : 32) SetUp error : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
     SetUp : Gallery.Core.Exceptions.IntegrationTesterBaseSetupFailedException : IntegrationTesterBase setup failed: IDatabaseBootstrapper database initialization failed.
    ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
    ----> System.Data.SqlServerCe.SqlCeException : El archivo ya existe. Pruebe usando un nombre de base de datos diferente. [ File name = D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\bin\Release\GalleryFeed.sdf ]
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 54
     at Gallery.IntegrationTests.IntegrationTesterBase`1..ctor(Boolean initializeDatabase) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.RepositoryTesterBase`1..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\RepositoryTesterBase.cs:line 16
     at Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester..ctor() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\Repositories\ScreenshotRepositoryTester.cs:line 9
  --TargetInvocationException
     at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.CreateSqlCeDatabaseFile(String connectionString) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 73
     at Gallery.Infrastructure.Impl.MigrationBootstrapper.InitializeDatabase() in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.Infrastructure\Impl\MigrationBootstrapper.cs:line 23
     at Gallery.IntegrationTests.IntegrationTesterBase`1.InitializeDatabase(Boolean shouldInitialize) in d:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\src\Gallery.IntegrationTests\IntegrationTesterBase.cs:line 50
  --SqlCeException
     at System.Data.SqlServerCe.SqlCeEngine.ProcessResults(IntPtr pError, Int32 hr)
     at System.Data.SqlServerCe.SqlCeEngine.CreateDatabase()
  
  33) Parent Failure : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester.RepositoryTesterBase`1.CollectionShouldReturnNonNullCollection
     TestFixtureSetUp failed in ScreenshotRepositoryTester
  34) Parent Failure : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester.RepositoryTesterBase`1.CreateShouldInsertGivenObjectIntoPersistence
     TestFixtureSetUp failed in ScreenshotRepositoryTester
  35) Parent Failure : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester.RepositoryTesterBase`1.DeleteManyWithPredicateMatchingAllRecordsShouldRemoveAllRecords
     TestFixtureSetUp failed in ScreenshotRepositoryTester
  36) Parent Failure : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester.RepositoryTesterBase`1.DeleteSingleShouldWork
     TestFixtureSetUp failed in ScreenshotRepositoryTester
  
D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj(19,5): error MSB3073: El comando "src\packages\NUnit.2.5.7.10213\Tools\nunit-console.exe src\Gallery.IntegrationTests\bin\Release\Gallery.IntegrationTests.dll /nologo /framework=4.0.30319 /xml:IntegrationTestResults.xml" sali� con el c�digo 29.
Done Building Project "D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj" (ReleaseBuild target(s)) -- FAILED.

Build FAILED.

"D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj" (ReleaseBuild target) (1) ->
(ReleaseBuild target) -> 
  EXEC : 1) SetUp error : Gallery.IntegrationTests.RecommendedVersionManagerTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 3) SetUp error : Gallery.IntegrationTests.Repositories.DeletedPackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 8) SetUp error : Gallery.IntegrationTests.Repositories.PackageDataAggregateRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 14) SetUp error : Gallery.IntegrationTests.Repositories.PackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 21) SetUp error : Gallery.IntegrationTests.Repositories.PublishedPackageRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 27) SetUp error : Gallery.IntegrationTests.Repositories.PublishedScreenshotRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  EXEC : 32) SetUp error : Gallery.IntegrationTests.Repositories.ScreenshotRepositoryTester [D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj]
  D:\Virtua\Desarrollo\NuGet\Nuget Gallery\Gallery New\Services\GalleryServer\build.proj(19,5): error MSB3073: El comando "src\packages\NUnit.2.5.7.10213\Tools\nunit-console.exe src\Gallery.IntegrationTests\bin\Release\Gallery.IntegrationTests.dll /nologo /framework=4.0.30319 /xml:IntegrationTestResults.xml" sali� con el c�digo 29.

    0 Warning(s)
    8 Error(s)

Time Elapsed 00:00:13.20
Presione una tecla para continuar . . . 

Anyone can help?

Thanks in advance!

Sergi

Coordinator
Aug 21, 2011 at 4:06 PM

Are you sure you ran ClickToBuildRelease, and not ClickToBuild? The intregration tests should not be executed when running ClickToBuildRelease.

Sep 1, 2011 at 7:23 AM

Sorry for the delay, I was out on holidays :-)

Yes, I ran ClickToBuildRelease, and yes, it seems as it's trying to run integration tests...

Coordinator
Sep 12, 2011 at 11:13 AM

Did it work when you ran ClickToBuildRelease?

Sep 12, 2011 at 11:19 AM

No, it failed.