Jul 20, 2012, 1:41 PM
[CLOSED] mysterious server error about deserializing object in v2.1
I will the mysterious error that popup when switching to v2.1. It is about a gridpanel selection in the postback but I'm not sure which event that generate that postback. With the same code this does not appear in v2.0
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unexpected end when deserializing object. Path '[0]', line 1, position 2.
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.JsonSerializationException: Unexpected end when deserializing object. Path '[0]', line 1, position 2.
Source Error:
Line 320: StringReader sr = new StringReader(val);
Line 321:
Line 322: this.selectedRows = (SelectedRowCollection)serializer.Deserialize(sr, typeof(SelectedRowCollection));
Line 323: }
Line 324:
Source File: C:\ExtNetSource2.1\Ext.Net\Ext\Selection\RowSelectionModel.cs Line: 322
Stack Trace:
[JsonSerializationException: Unexpected end when deserializing object. Path '[0]', line 1, position 2.]
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CheckedRead(JsonReader reader) +56
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +33
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +98
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IWrappedCollection wrappedList, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) +723
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) +193
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +125
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +462
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +405
Newtonsoft.Json.JsonSerializer.Deserialize(TextReader reader, Type objectType) +44
Ext.Net.RowSelectionModel.LoadPostData(String postDataKey, NameValueCollection postCollection) in C:\ExtNetSource2.1\Ext.Net\Ext\Selection\RowSelectionModel.cs:322
Ext.Net.RowSelectionModel.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) in C:\ExtNetSource2.1\Ext.Net\Ext\Selection\RowSelectionModel.cs:266
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +9046758
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Last edited by Daniil; Jul 27, 2012 at 4:01 PM.
Reason: [CLOSED]