HI
I update to "RavenDB-Unstable-Build-274", the exception was gone, but
throw a new exception:
Test method
Kooboo.CMS.Content.Persistence.RavenDB.Embedded.Tests.InsertUpdateDeleteTests.Export_Schema_Data
threw exception:
System.InvalidCastException: Unable to cast object of type
'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JObject'.
Raven.Database.Json.JsonDynamicConverter.ReadJson(JsonReader reader,
Type objectType, Object existingValue, JsonSerializer serializer) in c:
\Builds\raven-unstable\Raven.Abstractions\Json
\JsonDynamicConverter.cs: line 55
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IWrappedDictionary
dictionary, JsonReader reader, JsonDictionaryContract contract, String
id) in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json
\Serialization\JsonSerializerInternalReader.cs: line 634
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateAndPopulateDictionary(JsonReader
reader, JsonDictionaryContract contract, String id) in d:\Development
\Releases\Json\Working\Src\Newtonsoft.Json\Serialization
\JsonSerializerInternalReader.cs: line 593
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
387
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
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
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader
reader, Type objectType) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs: line
118
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader,
Type objectType) in d:\Development\Releases\Json\Working\Src
\Newtonsoft.Json\JsonSerializer.cs: line 418
Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type
objectType) in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json
\JsonSerializer.cs: line 413
Raven.Client.Client.JsonExtensions.Deserialize(JObject self, Type
type, DocumentConvention convention) in c:\Builds\raven-unstable
\Raven.Client.Lightweight\Client\JsonExtensions.cs: line 30
Raven.Client.Document.InMemoryDocumentSessionOperations.ConvertToEntity[T]
(String id, JObject documentFound, JObject metadata) in c:\Builds
\raven-unstable\Raven.Client.Lightweight\Document
\InMemoryDocumentSessionOperations.cs: line 391
Raven.Client.Document.InMemoryDocumentSessionOperations.TrackEntity[T]
(String key, JObject document, JObject metadata) in c:\Builds\raven-
unstable\Raven.Client.Lightweight\Document
\InMemoryDocumentSessionOperations.cs: line 318
Raven.Client.Document.AbstractDocumentQuery`2.Deserialize(JObject
result) in c:\Builds\raven-unstable\Raven.Client.Lightweight\Document
\AbstractDocumentQuery.cs: line 1256
System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
Raven.Client.Document.AbstractDocumentQuery`2.GetEnumerator() in c:
\Builds\raven-unstable\Raven.Client.Lightweight\Document
\AbstractDocumentQuery.cs: line 440
System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
Kooboo.CMS.Content.Persistence.RavenDB.Embedded.Tests.InsertUpdateDeleteTests.Export_Schema_Data()
in E:\Projects\Kooboo\src\trunk\Kooboo.CMS\Kooboo.CMS.Content
\Kooboo.CMS.Content.Persistence.RavenDB.Embedded.Tests
\InsertUpdateDeleteTests.cs: line 106