Try our conversational search powered by Generative AI!

Newtonsoft.Json.JsonReaderException Error when editing property

Vote:
 

Hi,

Pasted error below, all I'm adding to a XhtmlString property is standard HTML, as soon as I save and then try to edit the property again it barfs. It displays fine.

Cheers

Tim

 

Page could not be loaded

The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link.

Detailed error information (authorized by permissions to functions)

Error occured 03/06/2013 15:58:03
User IP ########
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36
Url http://########:80/secure/CMS/edit/EditProperty.aspx?moduleArea=LegacyCMS&epslanguage=en-GB&propertyname=MenuContent&id=510_1050
Referer (none)

Unterminated string. Expected delimiter: ". Path '', line 1, position 140.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Newtonsoft.Json.JsonReaderException: Unterminated string. Expected delimiter: ". Path '', line 1, position 140.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[JsonReaderException: Unterminated string. Expected delimiter: ". Path '', line 1, position 140.]
   Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote) +1436
   Newtonsoft.Json.JsonTextReader.ParseString(Char quote) +29
   Newtonsoft.Json.JsonTextReader.ParseValue() +244
   Newtonsoft.Json.JsonTextReader.ReadInternal() +35
   Newtonsoft.Json.JsonTextReader.Read() +20
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) +74
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +564
   Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +443
   EPiServer.Framework.Serialization.Json.JsonObjectSerializer.Deserialize(TextReader reader, Type objectType) +47
   EPiServer.UI.Edit.EditProperty.DeserializePropertyValue(String value, Type propertyValueType) +61
   EPiServer.UI.Edit.EditProperty.ApplyPostedValue() +133
   EPiServer.UI.Edit.EditProperty.Page_Init(Object sender, EventArgs e) +143
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnInit(EventArgs e) +92
   System.Web.UI.Page.OnInit(EventArgs e) +12
   EPiServer.UI.ContentBaseWebForm.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489
#71978
Jun 03, 2013 17:00
Vote:
 

I've got the same error on a link list, error is shown in the link list window:

 

Page could not be loaded

The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link.

Detailed error information (authorized by permissions to functions)

Error occured 7/2/2013 3:12:38 PM
User IP *****
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Url http://******:80/EPiServer/CMS/edit/EditProperty.aspx?moduleArea=LegacyCMS&epslanguage=null&propertyname=ContentReadMoreBlock.LinkList&id=88_333&epi.preventCache=1372774357854
Referer http://*****/EPiServer/CMS/edit/EditProperty.aspx?moduleArea=LegacyCMS&epslanguage=null&propertyname=ContentReadMoreBlock.LinkList&id=88_333&epi.preventCache=1372774172911

Unterminated string. Expected delimiter: ". Path '[0].text', line 1, position 110.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Newtonsoft.Json.JsonReaderException: Unterminated string. Expected delimiter: ". Path '[0].text', line 1, position 110.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[JsonReaderException: Unterminated string. Expected delimiter: ". Path '[0].text', line 1, position 110.]
   Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote) +1209
   Newtonsoft.Json.JsonTextReader.ParseString(Char quote) +40
   Newtonsoft.Json.JsonTextReader.ParseValue() +459
   Newtonsoft.Json.JsonTextReader.ReadInternal() +64
   Newtonsoft.Json.JsonReader.ReadAsStringInternal() +31
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) +149
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) +1858
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +452
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +188
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IWrappedCollection wrappedList, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) +1726
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) +311
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +245
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +867
   Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +529
   EPiServer.UI.Edit.EditProperty.ApplyPostedValue() +334
   EPiServer.UI.Edit.EditProperty.Page_Init(Object sender, EventArgs e) +183
   System.Web.UI.Page.OnInit(EventArgs e) +102
   EPiServer.UI.ContentBaseWebForm.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +186
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098
#72905
Edited, Jul 02, 2013 16:16
Vote:
 

It looks like it could be caused by an apostrophy in one of the link titles but there's no way to fix this now.

Thanks
Tony

#72908
Jul 02, 2013 16:35
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.