Genexus .Net 生成器

Genexus .Net Generator

我正在尝试迁移使用 GeneXus .Net 生成器构建的旧 aspx 站点。查看 web.config 我看到带有数据库连接信息的密钥,但它是加密的

<add key="Connection-Default-User" value="******" />
<add key="Connection-Default-Password" value="*******" />

我不知道如何生成这些加密值。谷歌搜索,我看到有人引用这些键的唯一地方是这个页面:Web Model - .NET Generator Manual of GeneXus X.

这是一个示例值(来自该页面):

<add key="Connection-Default-User" value="Elj20MqY44RPdvT8FEpDD0==" />

但没有详细说明。

感谢任何有关如何生成这些加密值的帮助。

在您生成的应用程序的 bin 文件夹中,有一个名为 GxConfig.exe 的实用程序。当你 运行 它时,如果它找到 web.config 文件,它会修改它,否则它会创建一个新文件(你可能需要从你的网络服务器复制文件)。

您可以在 GxConfig page from the Community Wiki 中找到更多信息。

引用该页面:

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.