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
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.