The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
Many of the web site configuration details for Sitefinity 3.x were stored in the web.config file. Web.config is the main settings and configuration file for an ASP.NET web site. This file is an XML document that defines configuration information for the web application.
However, because this file is used for ASP.NET configuration (in addition to Sitefinity configuration), the web.config file became a place where Sitefinity configuration, Sitefinity customizations and ASP.NET configurations collided. This overlap could then become an issue during Sitefinity upgrades.
With Sitefinity 4.0 we wanted to make upgrading Sitefinity as easy as possible. To do this, we needed to minimize our reliance on the web.config.
In Sitefinity 4.0 most of the configuration settings are now stored outside the web.config. If you’re curious where these settings went, open a Sitefinity 4.0 CTP project and find the ~/App_Data/Sitefinity/Configurations directory.
The config files inside this directory contain XML. New configuration settings can be applied to Sitefinity 4.0 by modifying these XML files. However, it should not be necessary to edit these files by hand. This isn’t necessary because Sitefinity 4.0 comes with a web-based configuration editor.
Most developers will not need to become overly familiar with Sitefinity’s config files. In most cases, Sitefinity’s configuration settings can be managed inside the CMS using the Configuration Editor. To access the new configuration editor:
1. Login to a Sitefinity 4.0 CTP web site
2. Click the Settings dropdown menu
3. Click the Configurations link
From here hundreds of Sitefinity configuration options (appearance, security, localization, widgets, layouts) can be accessed and managed. All configuration changes will automatically be persisted to XML files.
Check out the official documentation for more details about Sitefinity configurations.
The way Sitefinity 4.0 manages configuration settings will make it easier to upgrade Sitefinity projects. However, these external configuration files have another advantage; there can be multiple configurations. As long as Sitefinity was reliant on the web.config file, there could be only one.
However, Sitefinity 4.0 is not bound by that limitation. Consequently, multiple configurations can be created and then attached to policies (users, roles, domains, etc.). This allows Sitefinity to have a unique configuration for a unique setting.
I’ll write a lot more about this later. Configurations + policies will open new opportunities for adaptive interfaces, tools and configurations. I’m very excited about some of these opportunities.
If you haven’t already, please download the Sitefinity 4.0 CTP. As always, we welcome your feedback in the Sitefinity 4.0 Forums.
View all posts from The Progress Team on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Learn MoreSubscribe to get all the news, info and tutorials you need to build better business apps and sites
Progress collects the Personal Information set out in our Privacy Policy and the Supplemental Privacy notice for residents of California and other US States and uses it for the purposes stated in that policy.
You can also ask us not to share your Personal Information to third parties here: Do Not Sell or Share My Info
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.