我在我的应用程序中使用了RavenDB-Embedded 2.0.2230,在不同的程序集中与ASP .Net Web API进行了交互.
当我UseEmbeddedHttpServer = true在文档存储上设置时,第一次向RavenDB发送请求时,它会正确执行,但是当我第二次尝试时,我的应用程序会显示Raven Studio.
当我删除UseEmbeddedServer设置时,我的应用程序运行没有任何问题.
我的RavenDB在数据层中配置了以下代码:
this.documentStore = new EmbeddableDocumentStore
{
ConnectionStringName = "RavenDB",
UseEmbeddedHttpServer = true
}.Initialize();
Run Code Online (Sandbox Code Playgroud)
并Web.config在服务层中实现这些设置:
<connectionStrings>
<add name="RavenDB" connectionString="DataDir=~\App_Data\RavenDatabase" />
</connectionStrings>
Run Code Online (Sandbox Code Playgroud)
有没有我错过的设置?
我需要将任何设置应用于将Raven Studio指向另一个端口吗?