kenwright
Posts: 6
|
Posted: 04/26/2011, 3:06 PM |
|
I'm using ASP.Net/C#. I cannot have my SQL login information in a plain text web.config file.
- Is there any way in Code Charge Studio to specify that the login information in the connection string should be encrypted?
- I know I can use the windows utility aspnet_regiis.exe to encrypt the appSettings section of the web.config file but then every time I publish the project from Code Charge Studio it overwrites the file with unencrypted information. Is there any way to tell code charge NOT to publish this file when it publishes the project?
Any other suggestions to this problem?
|
|
|
datadoit
|
Posted: 04/26/2011, 5:25 PM |
|
Set the file to read only on the web server.
|
|
|
kenwright
Posts: 6
|
Posted: 04/28/2011, 10:32 AM |
|
Unfortunately, this doesn't work. In fact, the web.config file is already read-only by default. It still gets over-written when CCS publishes the files.
|
|
|
datadoit
|
Posted: 04/28/2011, 11:06 AM |
|
If the file was -really- read-only, then it wouldn't get overwritten.
Recheck your file permissions, particularly for the account that is
doing the publishing from CodeCharge (IIS FTP account or user account
that is running CodeCharge when doing local publishing).
We do this all the time when dealing with multiple developers, all
running slight variants of the common files. Once the chosen master
developer publishes the common files (Common, Templates, etc.), then no
one else can overwrite those files when publishing.
|
|
|
|