jeudi 28 mai 2015

RavenDB: Getting exception for in memory Document Store "Voron is prone to failure in 32-bits mode."

After following RavenDB's documentation

http://ift.tt/1LO0ajX

I am not able to successfully get a unit test to run past the creation of the in memory document store. I copy and pasted the test sample found in the documentation above using RavenDB's RavenTestBase.

[TestClass]
public class IndexTest : RavenTestBase
{
    [TestMethod]
    public void CanIndexAndQuery()
    {
        using (var store = NewDocumentStore())
        {
            new SampleData_Index().Execute(store);

            using (var session = store.OpenSession())
            {
                session.Store(new SampleData
                {
                    Name = "RavenDB"
                });

                session.SaveChanges();
            }

            using (var session = store.OpenSession())
            {
                var result = session.Query<SampleData, SampleData_Index>()
                    .Customize(customization => customization.WaitForNonStaleResultsAsOfNow())
                    .FirstOrDefault();

                Assert.Equals(result.Name, "RavenDB");
            }
        }
    }
}

public class SampleData
{
    public string Name { get; set; }
}

public class SampleData_Index : AbstractIndexCreationTask<SampleData>
{
    public SampleData_Index()
    {
        Map = docs => from doc in docs
                      select new
                      {
                          doc.Name
                      };
    }
}

Upon reaching NewDocumentStore()... I receive the following exception:

"Exception was unhandled by user code Voron is prone to failure in 32-bits mode. Use Raven/Voron/AllowOn32Bits to force voron in 32-bit process."

I am using Visual Studio 2013 (Update 4) and RavenDB 3.0

Thanks!

Aucun commentaire:

Enregistrer un commentaire