HomeIISError: Cannot read configuration file because it exceeds the maximum file size
Error: Cannot read configuration file because it exceeds the maximum file size
August 27, 2021
Default maximum file size for web.config file is 250KB. If the size of the web.config file exceeds 250 KB, web site throws an error. Microsoft added this file size restriction to prevent attacker from uploading large config file to the server and start a possible Denial of Service (DOS) attack.
Microsoft provided a Registry key for changing this size limit. You can change the following registry key to increase the size.