CodeCharge Studio

Server Profiles


CodeCharge Studio can store publishing settings for several servers that are used during web development and for publishing the application. The most common scenario is that you are testing your application locally (you have web server and runtime environment configured on your development machine) and after passing the tests the files are uploaded to the production server. Any other scenarios with greater number of server configurations are possible with CodeCharge Studio. Local development, testing, staging and production servers are possible to configure, each keeping its settings in a configuration unit called a Server Profile. SP stores publishing settings and database connections settings which may differ across different servers the application is published to and run on.

Each SP specifies a different set of publishing properties depending on the publishing method selected (Local/Network publishing vs FTP/SFTP/SSH publishing). Also the range of database connection settings depends on the database you are connecting to and API used to connect.

Changing Server Profiles

Server Profiles defined within current project scope are available through a listbox in the CodeCharge Studio toolbar:

The listbox contains server configurations defined in the current project scope. Listbox selection specifies the active profile which is used when publishing project files. By default each CodeCharge Studio project defines two profiles:

  1. Server1 stores default local publishing settings;
  2. Server2 stores the alternate FTP publishing settings.

Managing Server Profiles

To define, duplicate or rename a server profile Servers dialog is used. To access it choose Edit Servers... option in the toolbar Server Profiles switching listbox or click Edit Servers... button in the Project settings dialog's Publishing section.

The Servers dialog lists Server Profiles defined in the project scope. The list presents Server Name and Type columns specifying Server Profile's name and publishing method chosen. The active Server Profile is marked with (Active) following its name.

Button Functionality

This button displays a dialog to specify a new Server Profile name.


  1. Double-clicking an empty (non-item) area in the
  2. After specifying the name new Server Profile is created and depending on the global Server Profile settings a reminder message is displayed informing to configure publishing and connections' settings for the new Server Profile.
  3. If the name specified is not unique within project scope the notification is displayed.
Add from file... This button displays common file open dialog that allows to select another project's .CodeCharge Studio file which includes its Server Profiles to extract and copy to the current project scope.

New Server Profile entries are created in the current project as a copy of the original project's settings. If extracted Server Profile names are already defined in the current project they are renamed to maintain uniqueness.

Similarly to adding a profile, an Server Profile reminder dialog is displayed if configured globally.

Rename... This button displays Rename profile window for the Server Profile selected in the list. It can be used for customization of an existing Server Profile's name.

Note: Double-clicking an item in the Server Profiles list has the same effect.

Duplicate... This button duplicates the currently selected SP by copying its settings into a new SP. The new SP's name defaults to ServerN, where N is a consecutive number (the SP can be renamed afterwards).
Set active This button defines the SP to be used for generating code and publishing operations. This operation is equivalent to switching active server profile using toolbar's Server Profiles listbox.

The currently active server profile is marked with (Active) following its name in the list.

Remove This button removes the currently selected Server Profile. The settings are lost unless Cancel button is pressed to cancel dialog's editing operations.

Note: The button is only enabled for non-active Server Profiles. Active Server Profile cannot be removed.

Help This button displays help topics related to the Servers dialog and Server Profiles.
OK Clicking this button approves changes made to the Server Profiles lists.
Cancel Clicking this button rejects all changes made to the Server Profiles list during dialog session. The list is reverted to the state before opening the dialog.

Configuring Server Profiles

Global Settings

Publishing Settings

Database Connection Settings

On-line, printable versions and updates