Setting MaxWebConfigFileSizeInKB in IIS8.5
Asked Answered
M

1

9

I have a web.config file that references a rewrites.config file that is used by the inbuilt IIS Rewrite module. However my rewrites.config file is larger than 250kb, so i have followed the advise on this post. However it appears that in IIS 8.5 (Windows Server 2012) these keys are ignored. I've search the interwebs and haven't been able to find much on IIS 8.5, anyone got any advice on how to increased the maximum.config size? Or alternatively split rewrites.config into smaller files?

Move answered 30/6, 2014 at 12:11 Comment(0)
M
11

You can just create the key.

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

I've just tested this on a rewritemap.config file 753kb in size on a server running IIS8.0 on Windows Server 2012 (I'm making an assumption here that this won't be terribly different from IIS 8.5). You'll need to set the appropriate key depending on whether this is 64bit or 32bit (see here). If in doubt set both. I can confirm that this value is being used since turning the value down to (for example) 10 triggers the error again.

Don't forget to restart the app pool.

Micron answered 2/7, 2014 at 0:35 Comment(3)
Cheers Aaron, looks like the recycling the app pool did it!!Move
32 bit(Dword) worked for me in windows server 2016. created the entries and restarted iis. that is all.Sphacelus
The link is broken, however this location worked for me "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp" for the Configuration node. See forums.iis.net/t/…Metage

© 2022 - 2024 — McMap. All rights reserved.