最近、パッケージマネージャーRavenDB
を介して(一連のアセンブリ:クライアント、データベース、組み込み)をインストールしました。NuGet
私は次のように構成DocumentStore
しました:
public override void Load()
{
Bind<IDocumentStore>().ToMethod(
context => {
var documentStore = new EmbeddableDocumentStore {
Url = "http://localhost:8080",
DefaultDatabase = "ampDatabase",
UseEmbeddedHttpServer = true
};
return documentStore.Initialize();
}
).InSingletonScope();
Bind<IDocumentSession>().ToMethod(context =>
context.Kernel.Get<IDocumentStore>().OpenSession()
).InRequestScope();
}
このコードが呼び出された後:
documentSession.Store(idea);
documentSession.SaveChanges();
私は得ていSystem.Net.Sockets.SocketException
ます:
ターゲットマシンが積極的に拒否したため、接続できませんでした127.0.0.1:8080
私は何を逃しましたか?