Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
How can i disable Settings written to the app.config?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 7401751"] At first, I was trying to encrypt ConnectionStrings in my app.config and still be able to modify my datasets. So, i had to modify the Settings.Designer.cs file to handle the decryption aspect in the GET properties. This works great to run the application but there are two problems with it when developing at designtime. 1. Anytime i add another setting to Properties, the Designer rewrites the Settings.Designer.cs overwritting my decryption handling code. 2. I cannot modify a dataset without getting an "Object ref no found"(this happens because it doesn't recognize the encrypted connectionString). Being that I've been struggling through this issue now for a little over a week, I need to know how I can disable vs.net from wrtting my connectionstring to the app.config in clear text. In other words, I want to add ConnectionStrings to the Properties window but i don't want them to be written in the app.config. Everytime i link a dataset to a connection in the server explorer, vs.net automatiaclly adds the connectionString to my app.config in clear text. This is a huge problem for us. We've tryed setting up Protected Configuration but it seems to not work in Windows Applications. [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
How can i disable Settings written to the app.config?
Top