Read-only mode of configurations

PREREQUISITES: Your system must be in Auto-storage mode of configuration

When the system is in Auto-storage mode, you can further apply restriction to modify configuration files. This is the most common scenario of a production website delivery process.

This way, you make changes to config files only on the development environment. On the staging and the live environment, this restriction should be applied, because changes in the config files in these environments would be lost during deployment process.

What is restricted 

The types of restriction level are:

  • Default
    No restrictions. This is the default value. Ensure that this value is set on your local development environment.
  • ReadOnlyConfigFile
    Restricts writing to configuration files and hides pages from the backend UI used for modifying configurations. Following are some of the sections that are hidden from the UI:
    • Administration » Settings & Configurations » Settings
    • Administration » Settings & Configurations » Version & Licensing
    • Administration » Tools » File manager
    • Settings links on pages are hidden in News, Blogs, Events, Forums, Images, Videos, Documents list, Lists, Web services, Sitemap
    • SiteSync module is not active

Exceptions

Although connectors are part of the configuration, you can still configure them on the live environment.

The following are configurable on live:

  • Administration » Connectivity » Connector for Telerik BaaS
  • Administration » Connectivity » Connector for SharePoint
  • Administration » Connectivity » Connector for Marketo
  • Administration » Connectivity » Connector for SalesForce
  • Administration » Connectivity » Connector forSitefinity Insight

Turn Read-only mode on and off

You can do this in the following way: 

  1. Open you web.config file
  2. Add or delete the restrictionLevel in section <telerik> in the following way:
  3. Save and close the web.config.

Override the restriction level

You can override the restriction level when it is turned on, but you intentionally wants to change a config file. Use UnrestrictedModeRegion in the following way:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?