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?
jamiecrawfor...
7 Posts
encrypt connection strings for "default web site" not working
Feb 27, 2013 05:05 PM|LINK
Hi,
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?
Thanks,
j
jamiecrawfor...
7 Posts
Re: encrypt connection strings for "default web site" not working
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"