Take the 2-minute tour ×  I'm reading through Rob Ashton's
excellent blog post on RavenDB:
http://codeofrob.com/archive/2010/05/09/ravendb-an-
introduction.aspx  and I'm working through the code as I read.
But when I try to add an index, I get a 401 error. Here's the
code:  class Program     static void Main(string[] args)
using (var documentStore = new DocumentStore() { Url =
"http://localhost:8080" })                   new
IndexDefinition<BasicEntity, BasicEntity>()
Map = docs => from doc in docs
where doc.SomeData != null
select new                                       SomeData =
doc.SomeData              string entityId;              using
(var documentSession = documentStore.OpenSession())
var entity = new BasicEntity()                     SomeData =
"Hello, World!",                     SomeOtherData = "This is
just another property",                   entityId = entity.Id;
var