Unofficial Content
  • This documentation is valid for:

In order to configure the database access parameters in production, the Gxconfig tool is provided for each datastore.

It allows specifying a database Name, server, user password included in the web.config file (web environment) or Client.exe.config file (win environment and reorganization). The username and password are encrypted in the same way as it is done in the GeneXus environment.

They are located in the bin folder; in addition, there are two ways to update .config files:

  • Web.config

Web.config must be copied under the bin folder. After that, you should see a dialog box similar to the one shown below and configure the different values for each datastore. After making the changes in the web.config, you must copy and replace the file to the \web folder (parent folder).  

             Gxconfig

  • Client.exe.config

In order to configure this file (for Win applications or reorganization) it is necessary to execute...

 > gxconfig.exe client.exe.config

After that, you can configure the different values as shown in the previous image.

Notes

  • GxConfig.exe tool that allows modifying database connection settings at web.config (when using .NET) is not supported since it is a Windows form dialog. As an alternative, you can use GxEncryptCMD to encrypt the desired values to be pasted into appsetting.json file. 
  • If you want to execute the GxConfig.exe in another folder, you should also bring the following files: GxClasses.dll, GxEncrypt.dll, log4net.dll and the application.key or KeyResolver.dll
  • You can find the GxConfig.exe in the two places:
    • In <GeneXus installation folder>\gxnet\bin
    • In the bin folder of a .NET Framework application

 

Last update: February 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant