CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Encrypting web.config file/section

Print topic Send  topic

Author Message
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?
View profile  Send private message
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.
View profile  Send private message
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.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.