RavenDb Management Studio Not Opening in Browser

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 09:03:33

问题


Store initialisation:

private static IDocumentStore CreateDocumentStore()
    {
        var store = (DocumentStore) new EmbeddableDocumentStore
                                        {
                                            ConnectionStringName = "RavenDb",
                                        };

        NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);

        store.Initialize();

        store.Conventions.MaxNumberOfRequestsPerSession = 500;

        return store;
    }

Config:

</configSections>
<appSettings>
    <add key="Raven/Port" value="8080"/>
    <add key="Raven/DataDir" value="~\@App_Data"/>
    <add key="Raven/AnonymousAccess" value="Get" />
</appSettings>
<connectionStrings>
    <clear/>
    <add name="RavenDb" connectionString="DataDir=~\@App_Data\Raven" />
</connectionStrings>

The application works and raven persists some of the data, I just can't get to the management studio


回答1:


By default the studio isn't served. You have to enable RavenDB's embedded web server when constructing the store instance:

var store = (DocumentStore) new EmbeddableDocumentStore
    {
        ConnectionStringName = "RavenDb",
        UseEmbeddedHttpServer = true
    };


来源:https://stackoverflow.com/questions/13100172/ravendb-management-studio-not-opening-in-browser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!