Configuring web.config in GeneXus applications

From GXtest Wiki
Jump to: navigation, search
Spanish.gif
English.gif
link= {{{3}}}

.NET Web applications use a file called web.config (XML) to configure their access to the database.
This file is located in the root virtual directory.
Within that section there is a configuration file (web.config) that looks like this:

Webconfig.png

Often, this file need to be reconfigured with the name of SERVER DATABASE, the correct username and password.
Since this data is encrypted, we can use the a tool named GXConfig.exe to configure web.config file (you can find it within /bin directory of your application) file.
To do this, the web.config file must be copied to the bin folder:

Webconfig copy.png


Choose from the combo box the configuration, type server, username and password, and press Save.

Gxconfig.PNG

Now, you web.config file is updated.
Finally restore the file to its original location (outside the bin folder)