IIS 5 & IIS 6
encrypt connection strings for "default web site" not working
Last post Feb 27, 2013 06:40 PM by jamiecrawford
Feb 27, 2013 05:05 PM|LINK
I am trying to encrypt the connection strings inside the web.config for the default web site in IIS6. When using aspnet_regiis -pe "connectionStrings" it says its successful, but it isnt'. The strings are still in clear text.
Usually I use aspnet_regiis -pe "connectionStrings" -app "/myapplicaton" where "/myapplication" is a virtual directory. Unfortunately this application is under the default web site so I can't use "/myapplication".
Anyone have any idea what could be going on or how I could fix this?
Feb 27, 2013 06:40 PM|LINK
I figured it out..
I had to add the "f" to the -pe to point to the path of the web directory.
aspnet_regiis -pef "connectionStrings" "c:\inetpub\wwwroot\applicationpath"