RavenDb Management Studio 未在浏览器中打开

RavenDb Management Studio 未在浏览器中打开

问题描述:

存储初始化:

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

        NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);

        store.Initialize();

        store.Conventions.MaxNumberOfRequestsPerSession = 500;

        return store;
    }

配置:

</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>

应用程序正常运行并且 raven 保留了一些数据,我只是无法进入管理工作室

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

默认情况下不为工作室提供服务.构建商店实例时,您必须启用 RavenDB 的嵌入式 Web 服务器:

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
    };