Hello,
I am trying to encrypt a file using aspnet.regiis.exe. The problem I am running into is the file is not the web.config file that aspnet wants to encrypt. It is a file named CustomerConnStrings.config. I have tried to encrypt it, but aspnet_regiis errors out saying that "The configuratino for physical path 'c:\temp\customerconnstrings.config' cannot be opened. Failed!"
The command I am running is :
aspnet_regiis.exe -pef "connectionStrings" "C:\Temp\CustomerConnStrings.config"
I tried to run cmd as both Administrator and a regular user. I have tried to run the 64bit version of aspnet_regiis. I am able to rename the CustomerConnStrings.config file to web.config and add the <configuration> lines in and then it will allow me to encrypt it, but I am hoping that is not the best solution.
Thanks!