Install MaxWebConfigFileSizeInKB in IIS8.5

I have a web.config file that references the rewrites.config file that is used by the IIS built-in rewriter. However, my rewrites.config file is larger than 250K, so I followed advice on this post. However, it appears that in IIS 8.5 (Windows Server 2012) these keys are ignored. I searched interwebs and couldn't find much on IIS 8.5, did anyone get any tips on how to increase maximum.config size? Or alternatively split rewrites.config into smaller files?

+8
iis rewrite url-rewrite-module
source share
1 answer

You can just create.

Right-click on the parent node in REGEDIT - add a new key called Configuration. Then add a new DWORD for MaxWebConfigFileSizeInKB (you probably want to switch to decimal) and set the value to KB.

I just tested this on a rewritemap.config file of size 753kb on a server with IIS8.0 on Windows Server 2012 (I make the assumption that this will not differ much from IIS 8.5). You will need to set the appropriate key depending on whether it is 64-bit or 32-bit ( see here ). If in doubt, install both. I can confirm that this value is used from the moment the value is rotated to (for example) 10 again causes an error.

Remember to restart the application pool.

+10
source share

All Articles