HTTP Error 404.13 - asp.net core 2.0

后端 未结 3 1358
日久生厌
日久生厌 2020-12-10 05:11

HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.

Verify the

3条回答
  •  执念已碎
    2020-12-10 05:25

    If you use IIS, you need add web.config in your asp.net core 2.0 app.

    
    
      
        
          
            
            
          
        
      
    
    

    If you are not using IIS you can use [RequestSizeLimit(long.MaxValue)] or [DisableRequestSizeLimit] attribute in your controller.

    Also, you can add a global setting in Program.cs:

    .UseKestrel(o => { o.Limits.MaxRequestBodySize = null; })
    

    For more info see this https://github.com/aspnet/Announcements/issues/267

提交回复
热议问题