Search code examples
asp.netiis-express

How Do I Set AspMaxRequestEntityAllowed In IIS Express?


How do I set AspMaxRequestEntityAllowed in IIS Express on Windows 7? I know where the IIS Express config files are but I don't see the AspMaxRequestEntityAllowed setting there.

Thanks!


Solution

  • Yes, it also could not be found in IIS (usual version and not express) Schema, so it's ok as IIS Express mimics usual IIS features.

    %windir%\system32\inetsrv\config\schema
    

    In order to set AspMaxRequestEntityAllowed in IIS Express, you could use the appcmd for IIS Express which could be found in:

    %ProgramFiles%\IIS Express\\IIS Express\appcmd.exe
    

    The command to set it is similar with the one we set in usual IIS through appcmd:

    appcmd set config -section:asp -limits.maxRequestEntityAllowed:int
    

    Hope it helps. Thanks.