This is a migrated thread and some comments may be shown as answers.

Deployment and Encryption Of App.Config For WIndows Forms Releases Two App.Config Files - One Encrypted One Not

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 03 Mar 2013, 12:55 AM

The title says everything - I am deploying an application and there are two files that are being created upon setup and load event. I am encrypting the app.config connection string using MSDN code that I found. However, when I deploy and run the program it creates two folders in my AppData/2.0/ folder structure with two ApplicationName.exe.config files. One of them is encrypted as you would expect, the other is not. I am not sure what is going wrong or how to prevent the application from creating two app.config files but especially the one that is not encrypted. Thank you!

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 06 Mar 2013, 02:44 PM
Hello Kyle,

The App.Config file is generated automatically when there are custom settings in your project. You should specify a custom configuration file in this scenario, however this question is outside of the scope of our controls. I recommend that you direct your question to the appropriate MSDN forum.
 
Greetings,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
General Discussions
Asked by
Kyle
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or