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

后端 未结 4 1546
情歌与酒
情歌与酒 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:59

    
        
          
            
            
              
            
          
        
        
    

    Above settings worked for me. Additionally i had to set the target framework of the website to .Net 4.0. This web config setting was giving me 500 error when the target framework was set to .Net 2.0

    To change the framework, goto IIS and select Application Pool Right click on your website name and select Advanced settings. Here you can change the .Net Framework Version by clicking on the drop-down.

    Also i had this setting at the bottom of the web config. Only for good luck :)

    Hope this helps.

提交回复
热议问题