.NET MVC 4 JSON Post/Put char limit in Web.config

前端 未结 3 1259
無奈伤痛
無奈伤痛 2021-01-24 12:22

I am using the PUT verb to send JSON to a MVC controller. When I reach a certain limit I get a 500 error. If I scale back the JSON I send, then it sends just fine... Does anyone

3条回答
  •  梦毁少年i
    2021-01-24 12:45

    Approach - 1

     
       
           
               
                   
               
           
       
     
    

    Approach - 2

    
      
        
      
    
    

    Using this approach, we can set the limits for specific page and not for the complete application.

    Approach - 3

    
    

    Using this approach, we can set the limits for complete application.

提交回复
热议问题