[RavenDB.Database] Receiving TypeLoadException while trying to initialize an EmbeddableDocumentStore on netcoreapp2.0

15 views
Skip to first unread message

Ofir Green

unread,
Dec 5, 2017, 8:38:47 AM12/5/17
to RavenDB - 2nd generation document database
Hi,

I have a testing project that uses the following code:

```
      _store = new EmbeddableDocumentStore {
        Configuration =
        {
          RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true,
          RunInMemory = true,
        }
      };
      _store.Initialize();
```

it targets netcoreapp2.0 and uses RavenDB.Database & RavenDB.Client both versions are 3.5.5-patch-35241.
I'm receiving the following:

```
Stack Trace:
   at Raven.Database.Config.InMemoryRavenConfiguration..ctor()
   at Raven.Database.Config.RavenConfiguration..ctor()
   at Raven.Client.Embedded.EmbeddableDocumentStore..ctor()
   at Setup() in C:\projects\platform\tests\<>\Tests.cs:line 42
Error Message:
 System.TypeLoadException : Could not load type 'System.ComponentModel.Composition.Primitives.ComposablePartCatalog' from assembly 'System.ComponentModel.Composition, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
```

any idea how to resolve this issue?

Thanks,

Ofir.

Oren Eini (Ayende Rahien)

unread,
Dec 5, 2017, 8:40:43 AM12/5/17
to ravendb
EmbeddableDocumentStore  is not supported on .Net core, only on the full .NET framework

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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ofir Green

unread,
Dec 5, 2017, 9:07:02 AM12/5/17
to RavenDB - 2nd generation document database
Ok thanks for the speedy reply.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages