.net core 如何使用dotnet core增加上传大小?

.net core 如何使用dotnet core增加上传大小?,.net-core,.net Core,我使用dotnet core,我得到如下错误: HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length. 我试过用这个: [DisableRequestSizeLimit] public class HomeController : Controller { 我还尝试: [

我使用dotnet core,我得到如下错误:

HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length.
我试过用这个:

[DisableRequestSizeLimit]
    public class HomeController : Controller
    {
我还尝试:

[HttpPost]
        [RequestSizeLimit(100_000_000)]
        public IActionResult ProcessFile(IFormFile file)
        {
但仍然无法上载大小为50MB的文件+

如何在dotnet core 2中增加上载大小


我使用IIS Express

你试过这个吗?是的,我以前试过。这是一个重复的问题。答案如下: