16

I'm playing with Raven DB and am wondering if it's possible to connect to an embedded DB with Raven Management Studio. Has anyone ever done this?

Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
Ken Sykora
  • 1,124
  • 13
  • 27

1 Answers1

16

If I understood you correct and you mean the Web UI, you simply have to enable the embedded web server.

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

See http://ravendb.net/docs/server/deployment/embedded

Also make sure to include Raven.Studio.xap in the root of your web application

ccellar
  • 10,326
  • 2
  • 38
  • 56
  • 1
    This kind of works, but now I get this error message: Missing file Could not find file Raven.Server.xap, which contains the RavenDB Studio functionality. Please copy the Raven.Server.xap file to the base directory of RavenDB and try again. – Ken Sykora Aug 04 '11 at 20:09
  • 1
    And once you have included the Raven.Studio.xap file, it should just work. – Ayende Rahien Aug 05 '11 at 04:58
  • 1
    If you have RunInMemory=true and you're in a web application, copy the Raven.Studio.xap into the root of your *web application*! I missed this for a while! – Pete Montgomery Oct 28 '11 at 10:57
  • 1
    What about if you're trying to debug unit tests? Ideally I'd like to break anywhere and view the DB in its current state in Studio. – kamranicus Nov 16 '13 at 17:49
  • @subkamran have you found an answer to your question? – Dmitrii Lobanov Apr 25 '14 at 02:45