RavenDB.Client2.0.2173-不安定です。マルチテナントシステムを作成しています。登録プロセスの一環として、新しいRavenデータベースを作成したいと思います。
簡単な3行のコードがあります。
string newDBName = "1234";
IDocumentStore documentStore = new DocumentStore { Url = "http://myserver:8080", DefaultDatabase = newDbName};
documentStore.Initialize();
documentStore.DatabaseCommands.EnsureDatabaseExists(newDBName);
提案ごとに、私もこれを試しました:
string newDBName = "1234";
IDocumentStore documentStore = new DocumentStore { Url = "http://myserver:8080"};
documentStore.Initialize();
documentStore.DatabaseCommands.EnsureDatabaseExists(newDBName);
最後の行でInvalidOperationExceptionが発生しましたが、Ravenは何をすべきか理解できなかったと言っています。
<h1>Could not figure out what to do</h1>
<p>Your request didn't match anything that Raven knows to do, sorry...</p>
デフォルトのデータベースから読み取り/書き込みができるので、接続/サーバーが機能することはわかっています。
権限の問題ですか?