Error 500.19 - Internal Server Error - requestFiltering

1

I have an application that lets you upload with large files.

I have already uploaded my site in the hosting, I try to navigate the main page and I get error:

Detailed Error Information:

Module             RequestFilteringModule
Notification       BeginRequest
Handler            ExtensionlessUrlHandler-Integrated-4.0
Error Code         0x80070021
Config Error       This configuration section cannot be used at this path.
                   This happens when the section is locked at a parent level.
                   Locking is either by default (overrideModeDefault="Deny"),
                   or set explicitly by a location tag with 
                   overrideMode="Deny" or the legacy allowOverride="false".
Config File        \?\E:\Domains\meusite.com.br\wwwroot\web.config

See picture:

Followthecomplete web.config file:

<security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="2147483647" />
    <!--<requestLimits maxAllowedContentLength="104857600" />-->
    <!-- 100 * 1024 * 1024 = 104857600 bytes = (100MB) -->
  </requestFiltering>
</security>

Running application locally works great, now the hosting does not work.

Any solution?

    
asked by anonymous 23.11.2018 / 15:08

0 answers