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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISys.ArgumentException:cannot deserialize error in custom moduleSys.ArgumentException:cannot deserialize error in custom module
Previous
 
Next
New Post
11/16/2009 6:19 AM
 

Hi

i got following javascrip error in my custom module. i have created 3 different custom module but one module got this error when button click , dropdown selected indexchanged ..(all postback events)

Sys.ArgumentException:cannot deserialize. the data does not correspond to valid JSOM

parameter name:data

 

this is the log viewer details

 

AssemblyVersion: 5.1.1
PortalID: 0
PortalName: Vendors Online
UserID: 181
UserName: ftrix
ActiveTabID: 121
ActiveTabName: Permission
RawURL: /vol/Home/Permission/tabid/121/Default.aspx
AbsoluteURL: /vol/Default.aspx
AbsoluteURLReferrer: http://wakensys.getmyip.com/vol/Home/Permission/tabid/121/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; AskTB5.5)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d73d0862-32b8-419c-a6f4-46b663770aca
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary
StackTrace:
Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid object passed in, ':' or '}' expected. (1): { at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) 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 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) 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)
Source:

please help me to find solution , already i have wasted 2 days ....

Thanx

 

 

 
New Post
11/16/2009 9:11 AM
 

without seeing more information it is hard to tell.   Are you using the ClientAPI's getVar / setVar methods in your module?  Did you verify the page you are serving up is valid HTML (you have all closing tags)? 

If you could email me a login to see your page I may be able to see what is going on (refer to this thread in the email).


 
New Post
11/16/2009 10:34 PM
 

thanx for your reply

can i have your email address

 
New Post
11/17/2009 1:07 AM
 

This happens only with my own skin in view mode , its working fine in DNN default skin

the issue is same as in the folowing forum

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/76/threadid/279848/scope/posts/threadpage/1/Default.aspx

if its a dnn.controls.toolbars problem can anyone provide me a help?

 
New Post
11/17/2009 9:45 AM
 

If it is the dnn.controls problem, then I have a patch of webcontrols that is in testing available here (http://dnnwebcontrols.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=31631).  If you wish to apply it make a backup first. 

Though I am not sure the problem you are describing is the same issue.  My email is jon.henning AT dotnetnuke.com


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISys.ArgumentException:cannot deserialize error in custom moduleSys.ArgumentException:cannot deserialize error in custom module


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