1
I have application that allows to upload with large files.
I already went up my site in the hosting, try to navigate the main page and 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 image:
Follow the complete file web config.:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
<!--<requestLimits maxAllowedContentLength="104857600" />-->
<!-- 100 * 1024 * 1024 = 104857600 bytes = (100MB) -->
</requestFiltering>
</security>
Running application locally works very well, now by hosting does not work.
Some solution ?
I don’t know if it helps you because you probably don’t have access to IIS, but see: https://stackoverflow.com/questions/9794985/config-error-this-configuration-section-cannot-be-used-at-this-path
– George Wurthmann
@Georgewurthmann I have tried in the answer accepted, continues the same problem. It seems to me that in the answer accepted, should do on his server.
– Matheus Miranda
Yes, it has to be on the server where you’re staying, which is why I figured it wouldn’t work for you.
– George Wurthmann
Matheus tries to create the configuration in an ini file, calling it "user.ini" or ".user.ini" which is common to be the custom iis configuration for your software on compatible hosting servers.
– Andre Mesquita