1

Closed

DeserializePrimitiveObject Invocation error

description

Per this thread (http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/200/postid/351836/scope/posts/Default.aspx#351836).
When the __dnnVariable is not posted back to server which can happen if user does not wait for the page to finish loading, the following error can occur
 
System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. —-> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —-> System.ArgumentException: Invalid JSON primitive: . at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at
Closed Feb 9, 2010 at 7:52 PM by jhenning

comments