Rules for creating custom configuration files

If you need to create a custom configuration file that will be stored on the file system, make sure:

  • The configuration is related to the system setup and does not need to be changed runtime
  • It contains configurations that need to have different values on the different environments. For example, SMTP settings need to be different on the Test and the Live environments, in order not to spam your customer’s accounts with test data.
  • The configuration is not bound to the database in anyway.
    For example, it does not contain any GUIDs. This is because your Development and Live environments use different databases.

IMPORTANT: Custom configuration files must be stored on the file system and not in the database.

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

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to 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?