encrypting config file that aren't web config files...

O

Ollie Riches

I'm following the instructions @

http://msdn.microsoft.com/en-us/library/ms998280.aspx


I have a config file where we store all of our connection strings. I
would like to be able to encrypt these connections string using
aspnet_regiis. The problem that I am running into is that the file is
commonsettings.config and not web.config.

aspnet_regiis. -pef connectionStrings D:\Portal\Web\bin
\CommonSettings.config -prov "ProviderName".

I receive an error The configuration for physical path 'D:\Portal\Web
\bin\CommonSettings.config' cannot be opened.
Is there a way to allow aspnet_regiis to encrypt a file that is not a
web.config?


Cheers

Ollie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top