Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristian Ravnevand 91 posts 210 karma points
    Jun 26, 2018 @ 12:57
    Kristian Ravnevand
    0

    Problem with releaseDate

    When setting releaseDate on my site on live environment on an Azure installation of Umbraco I get the following error (se attached image):

    Newtonsoft.Json.JsonReaderException: Could not convert string to DateTime: 2018-06-29 11.47.00. Path 'releaseDate', line 1, position 3765.
       at Newtonsoft.Json.JsonReader.ReadDateTimeString(String s)
       at Newtonsoft.Json.JsonTextReader.FinishReadQuotedStringValue(ReadType readType)
       at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
       at Newtonsoft.Json.JsonTextReader.ReadAsDateTime()
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
       at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
       at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
       at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
       at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
       at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
       at Umbraco.Web.WebApi.Binders.ContentItemBaseBinder`2.<GetModelAsync>d__7.MoveNext()
    

    The issue isn't on localhost, so it seems to have somthing to do with settings on Azure. Any idea how to fix this?

    enter image description here

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies