Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...JavaScriptObjectDeserializer.DeserializePrimitiveObject Occasional problemsJavaScriptObjectDeserializer.DeserializePrimitiveObject Occasional problems
Previous
 
Next
New Post
2/5/2009 6:39 AM
 

Hi

I'm running 5.0 with quite a few custom (half written) modules - see http://www.runsaturday.com

I'm loving 5.0 - very stable!

However, rarely (one in a few hundred page views?) I'm seeing an error in this deserialize method

I've searched on here and the only links I've found suggest this is AJAX not installed?! That is definitely not the case here!

Has anyone got any ideas how to debug this? Are there any similar bugs already reported

Thanks

Stuart

Message: 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 System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)--- End of inner exception stack trace ---at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args)at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data)at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage)at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableNameValuePair(Page objPage, String strVar)at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariable(Page objPage, String strVar)at DotNetNuke.UI.WebControls.DNNMenu.LoadPostedJSON()at DotNetNuke.UI.WebControls.DNNMenu.OnInit(EventArgs e)at System.Web.UI.Control.InitRecursive(Control namingContainer)at System.Web.UI.Control.AddedControl(Control control, Int32 index)at System.Web.UI.ControlCollection.Add(Control child)at DotNetNuke.UI.WebControls.SolPartActions.OnInit(EventArgs e)at System.Web.UI.Control.InitRecursive(Control namingContainer)at System.Web.UI.Control.InitRecursive(Control namingContainer)at System.Web.UI.Control.AddedControl(Control control, Int32 index)at System.Web.UI.ControlCollection.Add(Control child)at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)


 
New Post
4/16/2009 12:00 PM
 

Sadly I'm still seeing this - and a quick search on here shows that it looks like others are seeing it too on DNN5.01 installations.

When I look at a full stack trace of the problem I can see that the stack includes DotNetNuke.UI.WebControls.SolPartActions and DotNetNuke.UI.WebControls.DNNMenu.OnInit. However, my skin does not use DNNMenu - so I don't understand why SolPartActions is being called?

Any ideas or suggestions about how to debug and resolve this are very welcome!

Stuart

 

 

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 System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableNameValuePair(Page objPage, String strVar) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariable(Page objPage, String strVar) at DotNetNuke.UI.WebControls.DNNMenu.LoadPostedJSON() at DotNetNuke.UI.WebControls.DNNMenu.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.WebControls.SolPartActions.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)

 
New Post
7/14/2009 8:07 PM
 

We were getting this problem after upgrading to 5.1 (from 4.9.4). 

After much hair loss I found that gettings users to press CTRL-F5 to reload the page fixed our problem!  For us it must have been something cached on the client browser that was out of sync with the server (perhaps a js file?).

Sounds too simple but I hope it helps.

 
New Post
7/14/2009 8:08 PM
 

We were getting this problem after upgrading to 5.1 (from 4.9.4). 

After much hair loss I found that gettings users to press CTRL-F5 to reload the page fixed our problem!  For us it must have been something cached on the client browser that was out of sync with the server (perhaps a js file?).

Sounds too simple but I hope it helps.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...JavaScriptObjectDeserializer.DeserializePrimitiveObject Occasional problemsJavaScriptObjectDeserializer.DeserializePrimitiveObject Occasional problems


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out