If you intend to decrypt the connectionStrings section in the web.config file, you will need to use the command below.
aspnet_regiis -pdf "connectionStrings" -app "d:/MyWebsiteApp"
Note: in the code you submit, pay attention to the following
1) aspnet_regiis utility command instead of regiis_asp.net
2) Since your application refers to the physical path, the container configuration should be -pdf instead of -pi
3) The name of the connectionStrings section instead of connectionString (note s )
If you are trying to decrypt the virtual path, the command should be lower
aspnet_regiis -pd "connectionStrings" -app "/MyWebsiteApp"
clklachu
source share