I consider myself lucky to be running a local development environment using Windows 7 which means all of my development sites run off of IIS7 (unless of course, I running them through the built-in Visual Studio web server).
IIS7 is dramatically different to IIS6 and Microsoft went to great pains to provide backwards compatibility (classic/integrated pipeline). However we’re now stuck in a technical limbo where we often end up running sites across both IIS versions.
Recently I’ve been working on some older EPiServer sites which are hosted on IIS6 boxes in production but I’ve had to develop locally on IIS7. Working across different environments like this is painful.
Whilst there are upgrade scripts and also a useful technical note about the differences between the configuration files on EPiServer World, its still all too easy to get to the stage where you can’t get elements of the site to work as intended and you feel you’ve got no option but to compare configurations files line by line to ‘spot’ any differences. This especially difficult when considering the size of the web.config files in EPiServer and ASP.NET 3.5 in general.
Often I’ve just wanted to start from scratch with a default EPiServer web.config file targeted at either IIS6 or IIS7. If you ever find yourself in this same configuration management hell then this little tidbit may come in handy.
Default EPiServer web.config files for both IIS6 and IIS7 can be found in your %PROGRAMFILES%EPiServerCMS<version-number>Application directory. These are called Web.Config.6 and Web.Config.7 respectively.
Obviously don’t edit these files, as they are no doubt used by the EPiServer Deployment Center when creating new local sites, but as a fallback to a configuration file that works – then go for it.