Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
423 views
in Web Development by 20 34 41

I am getting a 'HTTP error 500.19 – Internal server error'. And in the detailed error information it says that “Cannot read configuration file because it exceeds the maximum file size” and my web.config file size is more than 250KB.

How to solve this HTTP error 500.19 – Internal server error?


1 Answer

1 like 0 dislike
by 20 34 41
edited by

Solving: Cannot read configuration file because it exceeds the maximum file size

The default maximum limit to config file is 250KB. You can change this value by editing the Registry Key by following these steps:

Steps

  1. Open regedit app
  2. Open this path “\HKEY_Local_Machine\Software\Microsoft\InetStp\Configuration”
    - If there is no Configuration key create it, by right click on InetStp folder then click add a new key called Configuration.

  3. Right click on Configuration folder, then click on add a new DWORD, name it as “MaxWebConfigFileSizeInKB”, and add a value as the new max size of the config file.

  4. Restart the application pool in IIS.
If you don’t ask, the answer is always NO!
...