Will this help:
"Newtonsoft.Json.JsonSerializationException: Could not convert string
'WAPL.BBMGradeControl.Domain.AnalyteSourceResult' to dictionary key
type 'WAPL.BBMGradeControl.Domain.AnalyteSourceResult'. Create a
TypeConverter to convert from the string to the key type object. --->
Newtonsoft.Json.JsonSerializationException: Error converting value
\"WAPL.BBMGradeControl.Domain.AnalyteSourceResult\" to type
'WAPL.BBMGradeControl.Domain.AnalyteSourceResult'. --->
System.Exception: Could not cast or convert from System.String to
WAPL.BBMGradeControl.Domain.AnalyteSourceResult.\r\n at
Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object
value, Type initialType, Type targetType) in d:\\Development\\Releases\
\Json\\Working\\Src\\Newtonsoft.Json\\Utilities\\ConvertUtils.cs:line
467\r\n at
Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(Object
initialValue, CultureInfo culture, Type targetType) in d:\\Development\
\Releases\\Json\\Working\\Src\\Newtonsoft.Json\\Utilities\
\ConvertUtils.cs:line 389\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(Object
value, CultureInfo culture, Type targetType) in d:\\Development\
\Releases\\Json\\Working\\Src\\Newtonsoft.Json\\Serialization\
\JsonSerializerInternalReader.cs:line 479\r\n --- End of inner
exception stack trace ---\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(Object
value, CultureInfo culture, Type targetType) in d:\\Development\
\Releases\\Json\\Working\\Src\\Newtonsoft.Json\\Serialization\
\JsonSerializerInternalReader.cs:line 488\r\n at
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 615\r\n --- End
of inner exception stack trace ---\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IWrappedDictionary
dictionary, JsonRe
ader reader, JsonDictionaryContract contract, String id) in d:\
\Development\\Releases\\Json\\Working\\Src\\Newtonsoft.Json\
\Serialization\\JsonSerializerInternalReader.cs:line 648\r\n at
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\r\n 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
387\r\n 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\r\n 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\r\n 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\r\n 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\r\n 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\r\n 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\r\n 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\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueProperty(JsonReader
reader, JsonProperty property, Object target, Boolean
gottenCurrentValue, Object currentValue) in d:\\Development\\Releases\
\Json\\Worki
ng\\Src\\Newtonsoft.Json\\Serialization\
\JsonSerializerInternalReader.cs:line 198\r\n 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\r\n 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\r\n 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\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader
reader, Type objectType, Jso
nContract contract, JsonProperty member, Object existingValue) in d:\
\Development\\Releases\\Json\\Working\\Src\\Newtonsoft.Json\
\Serialization\\JsonSerializerInternalReader.cs:line 396\r\n 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\r\n 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\r\n at
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader
reader, Type objectType) in d:\\Development\\Releases\\Json\\Working\
\Src\\Newtonsoft.Json\\Serialization\
\JsonSerializerInternalReader.cs:line 120\r\n at Newto
nsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type
objectType) in d:\\Development\\Releases\\Json\\Working\\Src\
\Newtonsoft.Json\\JsonSerializer.cs:line 421\r\n at
Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type
objectType) in d:\\Development\\Releases\\Json\\Working\\Src\
\Newtonsoft.Json\\JsonSerializer.cs:line 413\r\n at
Raven.Client.Connection.JsonExtensions.Deserialize(RavenJObject self,
Type type, DocumentConvention convention) in c:\\Builds\\raven\
\Raven.Client.Lightweight\\Connection\\JsonExtensions.cs:line 30\r\n
at
Raven.Client.Document.InMemoryDocumentSessionOperations.ConvertToEntity[T]
(String id, RavenJObject documentFound, RavenJObject metadata) in c:\
\Builds\\raven\\Raven.Client.Lightweight\\Document\
\InMemoryDocumentSessionOperations.cs:line 399\r\n at
Raven.Client.Document.InMemoryDocumentSessionOperations.TrackEntity[T]
(String key, RavenJObject document, RavenJObject metadata) in c:\
\Builds\\raven\\Raven.Client.Lightweight\\Document\\InMemoryDocume
ntSessionOperations.cs:line 326\r\n at
Raven.Client.Document.AbstractDocumentQuery`2.Deserialize(RavenJObject
result) in c:\\Builds\\raven\\Raven.Client.Lightweight\\Document\
\AbstractDocumentQuery.cs:line 1440\r\n at
System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()\r\n at
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r
\n at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r
\n at Raven.Client.Document.AbstractDocumentQuery`2.GetEnumerator()
in c:\\Builds\\raven\\Raven.Client.Lightweight\\Document\
\AbstractDocumentQuery.cs:line 471\r\n at
Raven.Client.Linq.RavenQueryInspector`1.GetEnumerator() in c:\\Builds\
\raven\\Raven.Client.Lightweight\\Linq\\RavenQueryInspector.cs:line
94\r\n at
WAPL.BBMGradeControl.Service.BbmGradeControlService.GetSamples(DateTimeOffset
from, DateTimeOffset to) in C:\\dev\\WAPL\\BBMGradeControl\\trunk\\src\
\WAPL.BBMGradeControl.Service\\BbmGradeControlService.svc.cs:line 105"
On Jul 19, 5:30 pm, Ayende Rahien <
aye...@ayende.com> wrote:
> That seems strange, can you share the full exception message?
>