"JSON请求太大而无法反序列化"MVC淘汰赛

编程入门 行业动态 更新时间:2024-10-28 06:36:25
本文介绍了"JSON请求太大而无法反序列化"MVC淘汰赛的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在用类似的线程报废答案,但是没有运气.

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淘汰赛

本文发布于:2023-11-26 19:41:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634935.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太大   淘汰赛   序列化   quot   JSON

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!