我一直在用类似的线程报废答案,但是没有运气.
I've been scrapping the threads for an answer in similar threads with no luck.
我正在使用基因敲除JS从局部视图传回信息,并且得到了"JSON请求太大而无法反序列化".
I am using knockoutJS to pass the information back from my partial view and I am getting the "The JSON request was too large to be deserialized".
我已经完成了"修复,但这无济于事.
I have done the " " fix but this isn't helping.
我的页面上有一些安静的信息可以以列表的形式传递回去,我相信这就是为什么我在此页面上收到错误的原因,而不是其他我使用淘汰赛的错误.
My page has quiet a bit of information to pass back in the forms of lists, and I believe this is why I am getting the errors on this page and not others where I am using knockout.
我已经读到我可以构建自己的序列化程序,但它本身可能会导致更多问题.
I have read that I can build my own serializer but that in itself can lead to more problems.
任何人都可以提出其他建议吗?
Would anyone be able to suggest alternatives?
我试图找出的一件事是,我是否可以停止传回整个列表,而仅传回选定的值,但是我似乎找不到更多的信息.
One thing I was trying to find out is if I can stop passing back the whole lists and only pass back the selected values, but I can't seem to find any more information on this .
TIA
推荐答案我在下面添加了密钥,它对我有用.
I added the key below and it worked for me.
<appSettings> <add key="aspnet:MaxJsonDeserializerMembers" value="150000" /> </appSettings>更多推荐
"JSON请求太大而无法反序列化"MVC淘汰赛
发布评论