Ask questions This server does not support the IHttpRequestBodySizeFeature
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?
Answer questions zuckerthoben
We have the same problem. We are hosting In-Process in Azure. Does this mean that there is no RequestSizeLimit when on IIS? Or does it mean that if I reach the limit and I wanted to disable it, I get an error? Is there any workaround to only activate the feature if the hosting platform supports it?