HomeHome Product Discus... Product Discus...SmithCartSmithCartException error on BuyNow page related to JSONException error on BuyNow page related to JSON
Previous
 
Next
New Post
9/23/2010 11:29 PM
 

I am using the latest version but occasionally I am getting the following error. I cannot find a reason why it happens sometimes but not others.

AssemblyVersion: 5.2.1
ActiveTabName: Buy Now
RawURL: /BuyNow.aspx
AbsoluteURL: /Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5d1a8877-7f43-48a2-8049-4405d8f88205
InnerException: Exception has been thrown by the target of an invocation.
Method: System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject
StackTrace:
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.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
9/24/2010 12:09 AM
 

Nathan,

This is most likley not a problem with your shopping cart. This is a known issue with some hidden (but much needed)values that havent loaded yet when the page tries to post (in 5.2.1/2). So, they try to process with a "null" value and POOF, you get an ugly error and your site blows up. Is there a reason that you can not upgrade to a newer release version of DNN? if so there is a direct fix for the 5.2.1 version.

The description of this problem and a few different ways it was delt with in this version are described in this thread on the DNN forums.

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

If you aren't comfortable with applying any of these solutions or doing an upgrade yourself see if Smith Conculting can help with one of these solutions. I know that they are VERY busy with cart development (that is a shamless nudge for the customization that I am waiting on ;) ). If they are unable to help, reply here with some contact information and I will contact you and see if we can help.

Mark

 
New Post
9/24/2010 6:55 AM
 

Thanks for the reply.

I was planning to upgrade next week due to the .net issue but was going to wait for the latest version of DNN to be out in the wild first. I have tried to upgrade this portal before and it all went very wrong and I had to roll back to a backup. Have you upgraded to the latest version of DNN? Is it stable?

Thanks again.

 
New Post
9/24/2010 8:29 AM
 

We have done just about every upgrade combination that exists, I have not taken 5.2.1 to 5.5.1 yet as 5.5.1 is just out. There have been some issues upgrading any version to 5.5.0. Each version upgrade can be just a little different as far as success goes.

Also, I wouldnt count on the next release doing anything to address the current .net issue. since it is an issue with the framwork itself the best that they will be able to do in a short time with dnn is impliment some other "stopgap" fix that really isnt a fix. the site will still be powered by .net so the vulnerability will still exist. I wouldn't wait on that myself.

Do a really good backup and give it a try. Let us know how it goes awry or if you require assistance or most of all (and I hope this is the case) that is goes perfect.

Mark

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartException error on BuyNow page related to JSONException error on BuyNow page related to JSON