Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:13:15+00:00 2026-05-26T18:13:15+00:00

Im having Trouble setting up an in memory database using RavenDB. The error I

  • 0

Im having Trouble setting up an in memory database using RavenDB.

The error I get is: I get is:
SetUp : System.MissingMethodException : Method not found: ‘Raven.Json.Linq.RavenJObject Raven.Abstractions.Extensions.JsonExtensions.ToJObject(Byte[])’

Full Error Trace:

SetUp : System.MissingMethodException :
    Method not found: 'Raven.Json.Linq.RavenJObject Raven.Abstractions.Extensions.JsonExtensions.ToJObject(Byte[])'. 
at Raven.Storage.Managed.DocumentsStorageActions.DeleteDocument(String key, Nullable1 etag, ref RavenJObject metadata) 
at Raven.Database.DocumentDatabase.<>c__DisplayClass4e.<Delete>b__48(IStorageActionsAccessor actions)
    in c:\Builds\raven\Raven.Database\DocumentDatabase.cs: line 518 
at Raven.Storage.Managed.TransactionalStorage.Batch(Action1 action)
    in c:\Builds\raven\Raven.Storage.Managed\TransactionalStorage.cs: line 112 
at Raven.Database.DocumentDatabase.Delete(String key, Nullable`1 etag, TransactionInformation transactionInformation)
    in c:\Builds\raven\Raven.Database\DocumentDatabase.cs: line 509
at Raven.Database.Backup.RemoveBackupDocumentStartupTask.Execute(DocumentDatabase database)
    in c:\Builds\raven\Raven.Database\Backup\RemoveBackupDocumentStartupTask.cs: line 17 
at Raven.Database.DocumentDatabase.ExecuteStartupTasks()
    in c:\Builds\raven\Raven.Database\DocumentDatabase.cs: line 214 
at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration)
    in c:\Builds\raven\Raven.Database\DocumentDatabase.cs: line 173 
at Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() 
at Raven.Client.Document.DocumentStore.Initialize()
    in c:\Builds\raven\Raven.Client.Lightweight\Document\DocumentStore.cs: line 484 
at Aqueduct.Dashboard.Web.Tests.RavenInMemoryDatabase.InMemoryDatabase.DocumentStore()
    in InMemoryDatabase.cs: line 27 
at Aqueduct.Dashboard.Web.Tests.MonitoringServiceTests.Setup()
    in MonitoringServiceTests.cs: line 24

My InMemory db is defined below:

public EmbeddableDocumentStore DocumentStore()
    {

        string path = Path.GetDirectoryName(Assembly.GetAssembly(typeof(InMemoryDatabase)).CodeBase);
        path = Path.Combine(path, "testing").Substring(6);

        var documentStore = new EmbeddableDocumentStore()
        {
            Configuration =
            {
                DataDirectory = path,
                RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true,
                DefaultStorageTypeName = "munin",
                RunInMemory = true
            }
        };

        documentStore.Initialize();

        new RavenDocumentsByEntityName().Execute(documentStore);

        return documentStore;
    }

My Test is:

 [TestFixture]
public class MonitoringServiceTests
{
    private IMonitoringService m_monitoringService;
    private PerformanceRepository m_performanceRepository;
    private InMemoryDatabase m_inMemoryDatabase;

    [TestFixtureSetUp]
    public void Setup()
    {
        m_inMemoryDatabase = new InMemoryDatabase();

        m_performanceRepository = new PerformanceRepository(m_inMemoryDatabase.DocumentStore().OpenSession());
        m_monitoringService = new MonitoringService(m_performanceRepository);
    }

    [Test]
    public void RecordSnapShot_RecordsCpuUsage()
    {
        m_monitoringService.RecordSnapShot();
        var allMeasurements = m_performanceRepository.GetAll();
        Assert.IsTrue(allMeasurements.Where(x => x.MeasurementType == MeasurementType.ProcessorUsage).Count() == 1);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:13:16+00:00Added an answer on May 26, 2026 at 6:13 pm

    You probably have mixed versions of the ravendb dlls, that is the only thing that can cause this error

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're having trouble setting window captions using cyrillic or japanese characters. We either see
I am having trouble setting my ContentProperty to Text. The error I am given
I'm having trouble setting up my svn. I used apt-get install subversion to install
I'm having trouble setting the path to a DLL that is not in the
I'm using KVC to iterating through a few views. Having trouble setting BOOL properties:
I just started using db4o on C#, and I'm having trouble setting the UniqueConstraint
I'm having trouble setting up multicast transport using ActiveMQ. I noticed with version 5.2
I'm having trouble setting up the correct python version for mod_wsgi / django setup.
I'm having trouble setting up and placing values into an array using a text
I'm having some trouble setting a user variable in MySQL and using it in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.