This process encrypts the connection strings in the web.config file of the hosted application.
-
In the Search, type cmd. Right click Command prompt, and then select Run as Administrator.
-
Click Yes, and then type the following path: %windir%\Microsoft.NET\Framework\v4.0.30319\
-
To encrypt the connection strings, type the command: aspnet_regiis -pef "connectionStrings" "C:\Program Files\INTERGRAPH\SPMAT API" where:
-
pef is the keyword to encrypt the connection string
-
The second argument "connectionStrings" indicates that the name of the configuration section should be encrypted.
-
The third argument is the physical path of the folder, where the web.config file is located.
-
Section is encrypted in the web.config file.