This server does not support the IHttpRequestBodySizeFeature
See original GitHub issueI have an MVC action decorated with RequestSizeLimitAttribute
. However, I’m seeing the following message in my logs every time I hit that route: A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature
.
I’m running ASP.NET Core 2.2 with IIS on Windows Server 2016.
I couldn’t manage to find not even a single mention of this in Google. I’m guessing it’s because I’m running the app behind IIS. If that’s the case, does that mean that only web.config limits are supported?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
This server does not support the IHttpRequestBodySizeFeature
This server does not support the IHttpRequestBodySizeFeature . I'm running ASP.NET Core 2.2 with IIS on Windows Server 2016. I couldn't manage ...
Read more >MaxRequestSize attribute not stopping request aspnet ...
This server does not support the IHttpRequestBodySizeFeature. UPDATE: Add the following code and then you could see the log:
Read more >IHttpMaxRequestBodySizeFeature Interface
Feature to inspect and modify the maximum request body size for a single request.
Read more >ASP.NET Core: Change Kestrel Server Upload or Request ...
NET Core 3.1 example. IIS can have the request body limits specified in the web.config file, but this is not the case for...
Read more >How to increase upload file size in ASP.NET Core
Today I learned the hard way that since ASP.NET Core 2.0, the request body has acquired a default size limit at 30MB (~28.6...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@AFDevMike it wasn’t supported for 2.2 in-proc. It will be supported in 3.0.
The workaround is to use out-of-proc.
I feel like this was just an oversight. We can evaluate how hard this would be to do in IISInprocess and try to put it into 3.0.