setting jsonSerialization maxJsonLength in ASP.net Web.Config gives 500 error

后端 未结 4 1435
情歌与酒
情歌与酒 2021-01-13 09:19

So, I keep getting the 500 - Internal server error page on my .net site when I set the maxJsonLength in my web.config.

I\'m modifying the .config because even though

4条回答
  •  无人及你
    2021-01-13 09:49

    The problem for me was that I put the code in the beginning of the web.config. For some reason, putting it at the end worked.

    Not an expert, so I have no idea why that worked.

    It worked without the last two code sections that I tried to make it work.

提交回复
热议问题