question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This server does not support the IHttpRequestBodySizeFeature

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Tratchercommented, May 29, 2019

@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.

1reaction
jkotalikcommented, Mar 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found