views:

21

answers:

1

I have a web.config file which is quite large in my current solution running on IIS7.

It's working perfect on my dev server however I encounter the error 0x80070032 "Config Error Cannot read configuration file because it exceeds the maximum file size"

My current solution uses a very large web.config file. The architecture of my CMS application requires a large number of configuration settings.

Is there some way to extend this size limit or can I split the web.config file down into smaller files?

A: 

Have you tried adding this registry key:

HKLM\SOFTWARE\Microsoft\InetStp\Configuration

Then set this DWORD value: MaxWebConfigFileSizeInKB

If your system is running 64 bit windows but your application pool is running in 32-bit mode then you may need to set this in:

HKLM\SOFTWARE\Wow6232Node\Microsoft\InetStp\Configuration

If your web.config file is oversized because of a large number of rewrite rules then you could separate these into their own files:

Storing URL rewrite mappings in a separate file

Kev
Thanks for the tips Kev.