Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create new DB in RavenDB 2.x

Tags:

ravendb

Noob RavenDB question: Just brought down Raven 2.x and set it up to run in IIS. Just trying to create a new DB in RavenDB 2.x through the Studio. I have the following set in my configuration:

<add key="Raven/AnonymousAccess" value="All"/>  

I have the physical location set to allow Everyone full control. When I try to create a new database, I get the following:

Could not get authorization for this command. If you should have access to this operation contact your admin and check the Raven/AnonymousAccess or the Windows Authentication settings in RavenDB

Server Error:

The operation '/admin/databases/Test' is only available to administrators

Any ideas? Thanks!

like image 815
swannee Avatar asked Feb 25 '13 05:02

swannee


People also ask

How do I create a RavenDB database?

To do that, create your empty database and then click the gear icon. Under Tasks, click Create Sample Data. This will populate the database with a good size collection of sample documents that you can easily learn from. Given the scale at which RavenDB can serve, it's a surprisingly easy NoSQL database.

How to access RavenDB?

Running on WindowsExtract the file to a directory and then run the Start. cmd script or Server\Raven. Server.exe executable. This will run RavenDB in interactive mode, inside a console application, and you can access the server by going to http://localhost:8080 in your browser.


1 Answers

Change this value to be:

  <add key="Raven/AnonymousAccess" value="Admin"/>  
like image 156
Ayende Rahien Avatar answered Oct 25 '22 13:10

Ayende Rahien