Close

Profile: madsgodvinjensen

Avatar

User posts

Bugs
10 years ago

hristian.dimov wrote:
Hi madsgodvinjensen,

please submit a ticket with the required data to our system providing a link to your site and admin credentials, so we can investigate it.


I actually tried to submit a ticket before posting here but it doesn't work. The form finds no products no matter what I write. And if no product is found the text box is cleared. And the field is required... Can I send you an e-mail instead?

Bugs
10 years ago

hristian.dimov wrote:
There is a limitation in the .NET Framework on the JSON request being sent to the server. The fix is actually very simple. You need to increase the limit via adding a setting in your Web.config file.
Into the <appSettings> section add the following line:
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />

Hope this helps!


I've tried changing web.config. I've also tried changing the MaxJsonLength property in web.config. No luck. As per my description it seems to be a problem in the code and not the config.

Bugs
10 years ago

I'm getting an error in the Product Ribbon Conditions. When opening an edit condition dialog I get a "Retrieving condition types failed" alert. When inspecting the Ajax request sent I the following details:



Request URL: http://websiteurl/Admin/ConditionsAdmin/GetConditionTypes



Status Code: 500 Internal Server Error


 Request pay load: {"availableConditionTypesIds":"{\"4\":[0,2,4,3,5,1],\"3\":[1,0,4,5,11,12,2,8,10,6,7,3,9],\"5\":[]}"}



Error message: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."



I have found that the problem has to do with the input. When changing the request payload to:



{"availableConditionTypesIds":"{\"4\":[0,2,4,3,5,1],\"3\":[1,0,4,5,11,12,2,8,10,6,7,3,9]}"}


 .. the request works fine. I can't comprehend why. I have two different installations of the site. The conditions work fine on one and not the other. The databases (the SS_C_ tables and the SS_PR_ProductRibbon) are exactly the same.

Can anyone help?