问题
I am using a Web application with a web.config file larger than 250KB on IIS 10. In IIS 8.5 and below the registry key HKLM\SOFTWARE\Wow6432Node\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB (REG_DWORD) could be set to allow web.configs to be larger than 250KB. However it seems that this registry key is not read by IIS 10 any longer.
Does anyone know if this key should still work on IIS 10 or how to use config files larger than 250KB in combination with IIS 10?
回答1:
I forgot to set the 32 bit version registry key, HKLM\SOFTWARE\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB (REG_DWORD) It works now,
回答2:
For IIS Express on Windows 10 you need to set the MaxWebConfigFileSizeInKB value in the registry here: HKLM/HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\IISExpress\10.0\mimic\Configuration
.
Change maximum allowed configuration file size [IIS Express 10/Windows 10]
来源:https://stackoverflow.com/questions/32329067/maxwebconfigfilesizeinkb-and-iis-10