Raven.Tests.Helpers with XUnit 2.x

308 views
Skip to first unread message

Simon Fox

unread,
Feb 23, 2015, 8:46:54 PM2/23/15
to rav...@googlegroups.com
Hi All

XUnit 2.x is moving the VS runner to a NuGet package (as opposed to a plugin).

I'm seeing some issues with the following combination

Raven.Tests.Helpers 2.5.10
xunit.runner.visualstudio 2.0.0-rc2-build1043
xunit 2.0.0-rc2-build2857

I sporadically get an IOException from RavenTestBase.NewDocumentStore() on subsequent runs of a failed test run. There is a file in the CompiledIndexCache folder that is locked by another process. Understand I'm using pre-release xunit but thought you might want to see the problem. The trace follows...

Result Message: System.IO.IOException : The process cannot access the file 'C:\****\RavenDBHacking\RavenDBHacking\bin\Debug\Raven\CompiledIndexCache\-1653564037.99qQ2mx36J2xqq4dK7SfcQ%3d%3d.nodebug.dll.cs' because it is being used by another process.
Result StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents)
   at Raven.Database.Linq.QueryParsingUtils.DoActualCompilation(String source, String name, String queryText, OrderedPartCollection`1 extensions, String basePath, String indexFilePath) in c:\Builds\RavenDB-Stable-2.5\Raven.Database\Linq\QueryParsingUtils.cs:line 479
   at Raven.Database.Linq.QueryParsingUtils.Compile(String source, String name, String queryText, OrderedPartCollection`1 extensions, String basePath, InMemoryRavenConfiguration configuration) in c:\Builds\RavenDB-Stable-2.5\Raven.Database\Linq\QueryParsingUtils.cs:line 306
   at Raven.Database.Linq.DynamicViewCompiler.GenerateInstance() in c:\Builds\RavenDB-Stable-2.5\Raven.Database\Linq\DynamicViewCompiler.cs:line 594
   at Raven.Database.Storage.IndexDefinitionStorage.AddAndCompileIndex(IndexDefinition indexDefinition) in c:\Builds\RavenDB-Stable-2.5\Raven.Database\Storage\IndexDefinitionStorage.cs:line 233
   at Raven.Database.Storage.IndexDefinitionStorage.CreateAndPersistIndex(IndexDefinition indexDefinition) in c:\Builds\RavenDB-Stable-2.5\Raven.Database\Storage\IndexDefinitionStorage.cs:line 181
   at Raven.Database.DocumentDatabase.PutIndex(String name, IndexDefinition definition) in c:\Builds\RavenDB-Stable-2.5\Raven.Database\DocumentDatabase.cs:line 1229
   at Raven.Client.Embedded.EmbeddedDatabaseCommands.PutIndex(String name, IndexDefinition definition, Boolean overwrite) in c:\Builds\RavenDB-Stable-2.5\Raven.Client.Embedded\EmbeddedDatabaseCommands.cs:line 429
   at Raven.Client.Indexes.AbstractIndexCreationTask.Execute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention) in c:\Builds\RavenDB-Stable-2.5\Raven.Client.Lightweight\Indexes\AbstractIndexCreationTask.cs:line 200
   at Raven.Client.DocumentStoreBase.ExecuteIndex(AbstractIndexCreationTask indexCreationTask) in c:\Builds\RavenDB-Stable-2.5\Raven.Client.Lightweight\DocumentStoreBase.cs:line 93
   at Raven.Tests.Helpers.RavenTestBase.CreateDefaultIndexes(IDocumentStore documentStore) in c:\Builds\RavenDB-Stable-2.5\Raven.Tests.Helpers\RavenTestBase.cs:line 250
   at Raven.Tests.Helpers.RavenTestBase.NewDocumentStore(Boolean runInMemory, String requestedStorage, ComposablePartCatalog catalog, String dataDir, Boolean enableAuthentication) in c:\Builds\RavenDB-Stable-2.5\Raven.Tests.Helpers\RavenTestBase.cs:line 102
   at RavenDBHacking.QueryRavenCheckingForStaleResults.CheckingForStaleResults() in c:\****\RavenDBHacking\RavenDBHacking\RavenQuerySuite.cs:line 91

Thanks
Simon

Oren Eini (Ayende Rahien)

unread,
Feb 24, 2015, 3:56:50 AM2/24/15
to ravendb
Are you running tests concurrently?


Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simon Fox

unread,
Feb 24, 2015, 4:58:55 PM2/24/15
to rav...@googlegroups.com
Ah yes, sorry missed the behaviour of xunit 2 has moved to parallel by default. I had two classes containing tests so I guess that is equivalent to two test collections and thus parallel execution.

Thanks

Oren Eini (Ayende Rahien)

unread,
Feb 25, 2015, 3:06:29 AM2/25/15
to ravendb
If they are running in parallel, you cannot use the same directory path for running RavenDB while saving to disk.
The problem is that both databases will try to use the same paths, and that is not allowed.

Gary Stonerock II

unread,
Mar 6, 2015, 4:46:40 AM3/6/15
to rav...@googlegroups.com
What do you mean "same directory path"?  I'm actually running into this same issue after upgrading to NServiceBus v5.2 with RavenDb 2.5.2916.  Tried it with 2.5.2956 as well.  If I startup multiple endpoints at the same time, this error occurs.

Oren Eini (Ayende Rahien)

unread,
Mar 6, 2015, 5:17:04 AM3/6/15
to ravendb
Are they all using the same path for the database?

Gary Stonerock II

unread,
Mar 6, 2015, 7:56:31 AM3/6/15
to rav...@googlegroups.com
One instance of Raven.Server configured with the defaults.  Each Endpoint creates it's own database and each endpoint creates the same indexes for things like Timeouts.  The collisions are on the files in the CompiledIndexCache directory because it looks like the same index is generated multiple times (one for each endpoint).

I tried to configure the Server to compile indexes within each database directory via https://github.com/ravendb/ravendb/blob/2.5/Raven.Database/Linq/QueryParsingUtils.cs#l433

That worked - but had other negative side-effects.

Any ideas?

Oren Eini (Ayende Rahien)

unread,
Mar 6, 2015, 8:06:02 AM3/6/15
to ravendb
Generate the indexes once in the beginning on the test suite. That would avoid a conflict.

Justin A

unread,
May 9, 2015, 10:39:48 PM5/9/15
to rav...@googlegroups.com
I'm getting a similar issue with raven 3.0.3660 and xunit 2.0

  <package id="RavenDB.Client" version="3.0.3660" targetFramework="net451" />
  <package id="RavenDB.Database" version="3.0.3660" targetFramework="net451" />
  <package id="RavenDB.Tests.Helpers" version="3.0.3660" targetFramework="net451" />

  <package id="xunit.abstractions" version="2.0.0" targetFramework="net451" />
  <package id="xunit.core" version="2.0.0" targetFramework="net451" />
  <package id="xunit.extensibility.core" version="2.0.0" targetFramework="net451" />

Error message:

System.Reflection.ReflectionTypeLoadExceptionUnable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)
   at Raven.Database.Plugins.Catalogs.FilteredCatalog.GetExports(ImportDefinition definition) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Plugins\Catalogs\FilteredCatalog.cs: line 41

..
[Fact]
public async Task GivenAnExistingAccount_DeleteAsync_DeletesTheAccount()
{
    // Arrange.
    var documentStore = NewDocumentStore();
   ..
}

Dies on that line.

It feels like .. now that xUnit is (more properly) running in parallel, the tests fail to have multiple embedded doc stores running. I thought the idea was that .. running embedded IN RAM means nothing hits the file system?

Oren Eini (Ayende Rahien)

unread,
May 10, 2015, 6:46:41 AM5/10/15
to ravendb
Can you send the LoaderExceptions here?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--

Justin A

unread,
May 10, 2015, 6:59:07 PM5/10/15
to rav...@googlegroups.com
Can you send the LoaderExceptions here?


System.Reflection.ReflectionTypeLoadExceptionUnable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)
   at Raven.Database.Plugins.Catalogs.FilteredCatalog.GetExports(ImportDefinition definition) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Plugins\Catalogs\FilteredCatalog.cs: line 41
   at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, ref IEnumerable`1 exports)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, ref IEnumerable`1 exports)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, ref IEnumerable`1 exports)
   at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, ref IEnumerable`1 exports)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValuesCore(String contractName)
   at Raven.Database.DocumentDatabase.DocumentDatabaseInitializer.ExecuteAlterConfiguration() in c:\Builds\RavenDB-Stable-3.0\Raven.Database\DocumentDatabase.cs: line 1197
   at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState recievedTransportState) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\DocumentDatabase.cs: line 116
   at Raven.Database.Server.RavenDBOptions..ctor(InMemoryRavenConfiguration configuration, DocumentDatabase db) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Server\RavenDBOptions.cs: line 54
   at Raven.Database.Server.OwinHttpServer..ctor(InMemoryRavenConfiguration config, DocumentDatabase db, Boolean useHttpServer, Action`1 configure) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Server\OwinHttpServer.cs: line 24
   at Raven.Server.RavenDbServer.Initialize(Action`1 configure) in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Server\RavenDbServer.cs: line 106
   at Raven.Database.Client.EmbeddedDocumentStore.Initialize() in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Client\EmbeddedDocumentStore.cs: line 225
   at Raven.Client.Embedded.EmbeddableDocumentStore.Initialize() in c:\Builds\RavenDB-Stable-3.0\Raven.Database\Client\EmbeddableDocumentStore.cs: line 138
   at Raven.Tests.Helpers.RavenTestBase.NewDocumentStore(Boolean runInMemory, String requestedStorage, ComposablePartCatalog catalog, String dataDir, Boolean enableAuthentication, String activeBundles, Nullable`1 port, AnonymousUserAccessMode anonymousUserAccessMode, Action`1 configureStore, String databaseName) in c:\Builds\RavenDB-Stable-3.0\Raven.Tests.Helpers\RavenTestBase.cs: line 210
   at Hornet.Tests.Services.AccountServiceFacts.DeleteAsyncNewFacts.<GivenAnExistingAccount_DeleteAsync_DeletesTheAccount>d__1a.MoveNext() in AccountServiceFacts.cs: line 116
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xunit.Sdk.TestInvoker`1.<>c__DisplayClassc.<<InvokeTestMethodAsync>b__9>d__e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xunit.Sdk.ExecutionTimer.<AggregateAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xunit.Sdk.ExceptionAggregator.<RunAsync>d__0.MoveNext() in c:\TeamCity\buildAgent\work\74856245f07a90f0\src\xunit.core\Sdk\ExceptionAggregator.cs: line 90
 

Oren Eini (Ayende Rahien)

unread,
May 12, 2015, 4:41:00 AM5/12/15
to ravendb
That is still missing the LoaderExceptions 
Alternatively, can you send us a project that repro this?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--

Daniel Zolnjan

unread,
Aug 14, 2015, 5:09:04 PM8/14/15
to RavenDB - 2nd generation document database
I'm getting same error when trying to run xunit tests in parallel. Seems to be getting two different errors randomly. (all works fine if tests are run one at the time)

I used this to capture error:
 try
               
{


                   
// _store = new EmbeddableDocumentStore();
                   
// _store.Initialize();
                    _store
= NewDocumentStore(configureStore: ConfigureTestStore);
                    _store
.Conventions.FindTypeTagName = t => t.Name;
               
}
               
catch (ReflectionTypeLoadException ex)
               
{
                   
StringBuilder sb = new StringBuilder();
                   
foreach (Exception exSub in ex.LoaderExceptions)
                   
{
                        sb
.AppendLine(exSub.Message);
                       
FileNotFoundException exFileNotFound = exSub as FileNotFoundException;
                       
if (exFileNotFound != null)
                       
{
                           
if (!string.IsNullOrEmpty(exFileNotFound.FusionLog))
                           
{
                                sb
.AppendLine("Fusion Log:");
                                sb
.AppendLine(exFileNotFound.FusionLog);
                           
}
                       
}
                        sb
.AppendLine();
                   
}
                   
string errorMessage = sb.ToString();
               
}

Here is error 1:

Could not load file or assembly 'Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: The same bind was seen before, and was failed with hr = 0x80070002.


Could not load file or assembly 'Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: The same bind was seen before, and was failed with hr = 0x80070002.


Could not load file or assembly 'Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Esent.Interop, Version=1.7.0.0, Culture=neutral, PublicKeyToken=8dd49bbdae3f61af
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: The same bind was seen before, and was failed with hr = 0x80070002.


Could not load file or assembly 'Jint, Version=2.4.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Jint, Version=2.4.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Jint, Version=2.4.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f
LOG: Fusion is hosted. Check host about this assembly.
LOG: Try host assembly store with assembly jint, version=2.4.0.0, culture=neutral, publickeytoken=2e92ba9c8d81157f, processorarchitecture=x86.
LOG: Try host assembly store with assembly jint, version=2.4.0.0, culture=neutral, publickeytoken=2e92ba9c8d81157f, processorarchitecture=msil.
LOG: Try host assembly store with assembly jint, version=2.4.0.0, culture=neutral, publickeytoken=2e92ba9c8d81157f.
WRN: Host assembly store does not contain this assembly.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/Jint.DLL.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/Jint/Jint.DLL.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/Jint.EXE.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/Jint/Jint.EXE.


Could not load file or assembly 'Jint, Version=2.4.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = Jint, Version=2.4.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: The same bind was seen before, and was failed with hr = 0x80070002.


----------------------
Here is error 2:

Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Fusion Log:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Users\Daniel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Fusion is hosted. Check host about this assembly.
LOG: Try host assembly store with assembly system.net.http.formatting, version=5.2.2.0, culture=neutral, publickeytoken=31bf3856ad364e35, processorarchitecture=x86.
LOG: Try host assembly store with assembly system.net.http.formatting, version=5.2.2.0, culture=neutral, publickeytoken=31bf3856ad364e35, processorarchitecture=msil.
LOG: Try host assembly store with assembly system.net.http.formatting, version=5.2.2.0, culture=neutral, publickeytoken=31bf3856ad364e35.
WRN: Host assembly store does not contain this assembly.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/System.Net.Http.Formatting.DLL.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/System.Net.Http.Formatting/System.Net.Http.Formatting.DLL.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/System.Net.Http.Formatting.EXE.
LOG: Attempting download of new URL file:///C:/Users/Daniel/.dnx/runtimes/dnx-clr-win-x86.1.0.0-beta6/bin/System.Net.Http.Formatting/System.Net.Http.Formatting.EXE.


Oren Eini (Ayende Rahien)

unread,
Aug 14, 2015, 8:06:06 PM8/14/15
to ravendb
what build are you using?

Daniel Zolnjan

unread,
Aug 15, 2015, 3:40:02 AM8/15/15
to RavenDB - 2nd generation document database
Here are my dependecies from project.json :

        "System.Collections": "4.0.10-beta-23109",
        "System.Linq": "4.0.0-beta-23109",
        "System.Threading": "4.0.10-beta-23109",
        "System.Runtime": "4.0.10-beta-23109",
        "Microsoft.CSharp": "4.0.0-beta-23109",

        "xunit": "2.1.0-beta4-*",
        "xunit.runner.dnx": "2.1.0-beta4-*",
        "xunit.runner.visualstudio": "2.0.1",

        "RavenDB.Tests.Helpers": "3.0.3690",

Oren Eini (Ayende Rahien)

unread,
Aug 15, 2015, 5:40:32 AM8/15/15
to ravendb
Can you send the actual sample project with the failing sample tests?
And the exact command line, runtime version, etc?
Reply all
Reply to author
Forward
0 new messages