Well, I downloaded RavenDB-Build-371.zip and started RavenDb with
"Samples\Raven.Sample.EventSourcing\Start Raven.ps1"
Then I've started Raven.Sample.EventSourcing.csproj in VS2010, hit
enter after message "Wrote 5 events" and it throws:
Newtonsoft.Json.JsonSerializationException was unhandled
Message=Cannot deserialize JSON object into type
'Raven.Json.Linq.RavenJObject'.
Source=Newtonsoft.Json
StackTrace:
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader
reader, Type objectType, JsonContract contract, JsonProperty member,
Object existingValue) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line
417
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader
reader, Type objectType, JsonContract contract, JsonProperty member,
Object existingValue) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line
223
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueProperty(JsonReader
reader, JsonProperty property, Object target, Boolean
gottenCurrentValue, Object currentValue) in d:\Development\Releases
\Json\Working\Src\Newtonsoft.Json\Serialization
\JsonSerializerInternalReader.cs:line 198
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty
property, JsonReader reader, Object target) in d:\Development\Releases
\Json\Working\Src\Newtonsoft.Json\Serialization
\JsonSerializerInternalReader.cs:line 552
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object
newObject, JsonReader reader, JsonObjectContract contract, String id)
in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json
\Serialization\JsonSerializerInternalReader.cs:line 1028
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateAndPopulateObject(JsonReader
reader, JsonObjectContract contract, String id) in d:\Development
\Releases\Json\Working\Src\Newtonsoft.Json\Serialization
\JsonSerializerInternalReader.cs:line 858
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader
reader, Type objectType, JsonContract contract, JsonProperty member,
Object existingValue) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line
396
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader
reader, Type objectType, JsonContract contract, JsonProperty member,
Object existingValue) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line
223
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueNonProperty(JsonReader
reader, Type objectType, JsonContract contract) in d:\Development
\Releases\Json\Working\Src\Newtonsoft.Json\Serialization
\JsonSerializerInternalReader.cs:line 208
at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader
reader, Type objectType) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line
120
at
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader,
Type objectType) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\JsonSerializer.cs:line 421
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader
reader, Type objectType) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\JsonSerializer.cs:line 413
at
Raven.Client.Document.AbstractDocumentQuery`2.Deserialize(RavenJObject
result) in c:\Builds\raven\Raven.Client.Lightweight\Document
\AbstractDocumentQuery.cs:line 1357
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1
collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at
Raven.Client.Document.AbstractDocumentQuery`2.GetEnumerator() in c:
\Builds\raven\Raven.Client.Lightweight\Document
\AbstractDocumentQuery.cs:line 466
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Raven.Sample.EventSourcing.Program.Main() in D:\RavenDb
\RavenDB-Build-371\Samples\Raven.Sample.EventSourcing\Program.cs:line
83
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Note that the program enter some kind of loop throwing this exception
and don't stop until you stop debugging.
I'm new to RavenDb but I will try to understand it better