Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Consider the following scenario:
You are running IIS Express 8 to test your web application and your web application contains a web.config file which is larger than 250 KB. When you run your application under IIS Express 8, you are receiving “Cannot read configuration file because it exceeds the maximum file size” error message as seen in the following screenshot:
As explained in https://support.microsoft.com/kb/954864, the maximum size of a web.config file is 250 KB but you can increase the value by adding MaxWebConfigFileSizeInKB key under Microsoft\InetStp\Configuration registry key and increase the limit (or set 0 for unlimited size). However, IIS Express 8 does NOT honor this registry setting.
Instead, if you are running IIS Express 8, you need to create MaxWebConfigFileSizeInKB under the following keys when you are using large web.config files:
For 32bit processes:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\
Microsoft\IISExpress\8.0\mimic\Configuration
For 64bit processes:
HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft\IISExpress\8.0\mimic\Configuration
You need to restart IIS Express 8 for the changes to take effect.
(Note that you may need to create Configuration registry key as well.)
Update
My colleauge, Benjamin Perkins, has posted a great article about IIS Express, I believe it is a must-see article if you are working with IIS Express and having troubles.
A global directory for IIS Express
https://blogs.msdn.com/b/benjaminperkins/archive/2013/01/08/a-global-directory-for-iis-express.aspx
Applies To
IIS Express 8
--
AMB
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in