Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot have more than 16 slices #17

Open
jonasklingborg opened this issue Dec 21, 2015 · 1 comment
Open

Cannot have more than 16 slices #17

jonasklingborg opened this issue Dec 21, 2015 · 1 comment

Comments

@jonasklingborg
Copy link

Hi,

I'm running EPiServer 8.5 with Find 9.5 and PowerSlice 2.1.3.0.

If I have more than 16 slices/filters it is not possible to add the gadget. I get a javascript popup saying "Error: could not add component". (If the gadget is already added, it is not a problem having more slices, so I didn't notice the problem while developing the slices, only when I moved to my test environment.)

I have tested several combinations of slices, so I don't think it is a problem with a particular slice. Just when I go from 16 to 17.

@thorhj
Copy link
Contributor

thorhj commented Dec 22, 2016

When dojo tries to add the component, the payload JSON for the component becomes increasingly large with more slices. At some point ASP.NET refuses to handle any more, at that is why you are getting an error when having more than 16 slices.

You can set the maximum allowed JSON size by using the aspnet:MaxJsonDeserializerMembers key in the appSettings (default value is 1000):

<appSettings>
    <add key="aspnet:MaxJsonDeserializerMembers" value="10000" />
</appSettings>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants