本文介绍了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
};
这篇关于RavenDb Management Studio 未在浏览器中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!