A potentially dangerous Request.Form

前端 未结 8 2025
深忆病人
深忆病人 2021-01-08 00:32

Anyone know why I am getting the following error? I have debugging enabled.

Server Error in \'/\' Application.
---------------------------------------------         


        
8条回答
  •  我在风中等你
    2021-01-08 01:12

    I had to go hunting a little within my web.config file, specifically within the system.web xml section, to find where I could update the directives... as you noted. As soon as I added the validateReqest = "false" attribute to the pages directive within web.config file, it made everything whole again.

    In my particular case, it is NOT on a production server however and this is not 'production' level code either. It's a private local server, with me only as the sole user in the environment so that makes me feel better about updating that setting. As below:

    
        
    
    

提交回复
热议问题