G
Guest
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.
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.