Search code examples
ravendbravendb-studio

RavenDB studio "no databases and no file systems" in embedded mode


I could not find any information about this online after much searching, any help would be appreciated.

I create my EmbeddableDocumentStore and everything seems to be working fine, my application is using the database. However, when I access the management studio using my port number 5050, it states "No databases and no filesystems are available".

RavenDB.Client and RavenDB.Database nuget package versions are 3.0.3800.

var store = new EmbeddableDocumentStore
{
    DataDirectory = "Data",
    UseEmbeddedHttpServer = true
};

store.Configuration.Port = 5050;

store.Initialize();

Solution

  • While writing the question I had an idea and tried it. This resolved the issue but I thought I would post this for reference in case someone had a similar problem.

    I could not see this in the docs (http://ravendb.net/docs/article-page/3.0/csharp/server/installation/embedded) but in order to access the resource I had to give it a name.

    var store = new EmbeddableDocumentStore
    {
        DataDirectory = "Data",
        UseEmbeddedHttpServer = true,
        DefaultDatabase = "Default"
    };
    

    Now it shows up in the RavenDB studio.