at Raven.Client.Json.BlittableJsonWriter.WriteMetadata() at Raven.Client.Json.BlittableJsonWriter.WriteStartObject() at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteObjectStart(JsonWriter writer, Object value, JsonContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Raven.Client.Documents.Session.EntityToBlittable.ConvertEntityToBlittable(Object entity, DocumentInfo documentInfo) at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForEntitiesPuts(SaveChangesData result) at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForSaveChanges() at Raven.Client.Documents.Session.Operations.BatchOperation.CreateRequest() at Raven.Client.Documents.Session.AsyncDocumentSession.<SaveChangesAsync>d__18.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at DDS.Synchronizer.Server.Repository.Store.<SaveChangesAsync>d__13.MoveNext() in D:\Code\2DS\Aplicaciones\Synchronizer\DDS.Synchronizer.Server\Repository\Store_General.cs:line 59
internal sealed class ApplicationVersion_Indexes : AbstractIndexCreationTask<ApplicationVersion>{ public ApplicationVersion_Indexes() { Map = versions => versions.Select(version => new { version.ApplicationId, version.State, Created_Ticks = version.Created.Ticks });
Sort(x => x.Created.Ticks, SortOptions.Numeric); }}
await _session.Query<ApplicationVersion, ApplicationVersion_Indexes>().Where(x => x.ApplicationId == applicationId && x.State == VersionState.Valid)
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
public sealed class ApplicationVersion : IStorable{ public ApplicationVersion() { Created = DateTime.UtcNow; }
public string ApplicationId { get; set; } public DateTime Created { get; set; } public IEnumerable<File> Files { get; set; } public IEnumerable<File> IncludedFiles { get; set; } public Dictionary<string, string> Metadata { get; set; } public VersionState State { get; set; } public bool UpdateIncludedFiles { get; set; }
public string Id { get; set; }}
public enum VersionState{ MissingFiles, Valid}
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
And what's stranger is that even if I comment the only line where I'm actually saving an entity, the error still happens on a session with loaded entities and no one modified (but I'm calling SaveChangesAsync anyways).
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
What is the cast to / from?
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
On Mon, Jun 19, 2017 at 4:50 PM, Marcelo Volmaro <mvol...@gmail.com> wrote:
And what's stranger is that even if I comment the only line where I'm actually saving an entity, the error still happens on a session with loaded entities and no one modified (but I'm calling SaveChangesAsync anyways).
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
System.InvalidCastException occurred HResult=0x80004002 Message=Specified cast is not valid. Source=Raven.Client StackTrace:
at Raven.Client.Json.BlittableJsonWriter.WriteMetadata() at Raven.Client.Json.BlittableJsonWriter.WriteStartObject() at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.WriteObjectStart(JsonWriter writer, Object value, JsonContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Raven.Client.Documents.Session.EntityToBlittable.ConvertEntityToBlittable(Object entity, DocumentInfo documentInfo) at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForEntitiesPuts(SaveChangesData result) at Raven.Client.Documents.Session.InMemoryDocumentSessionOperations.PrepareForSaveChanges() at Raven.Client.Documents.Session.Operations.BatchOperation.CreateRequest() at Raven.Client.Documents.Session.AsyncDocumentSession.<SaveChangesAsync>d__18.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.