Protected Configuration in a Windows Application using C#.

G

Guest

I'm trying to use Protected Configuration to encrypt the contents within the
connectionStrings elements in my app.config file. I've got it to work
successfully on my development machine but when I deploy it to other machines
the appliction just crashes when it trys to access the app.config
connectionStrings.

Is it possible to use Protected Configuration in a Windows Application? If
so, will I have to use aspnet_regiis.exe import the keys into every machine?

Nuno
 
G

Guest

I also would like to know how to do this in a windows application. I've been
trying to use my own custom encryption that we used in 1.1 but now with the
new datasets depending on the connectionStrings in the application's
Settings, it's really getting ugly trying to protect our sensitive data.
Right now the only way we can do is is by editting the Settings.Designer.cs
file's Get properties.

The method compiles fine but then you can't modify your typed dataset
because it throws an "Object reference not found." error and the query
builder doesn't auto-decrypt the connstrings. This is a big drawback for us.

I've read about the Protected Configuration over and over but it seems like
it's only ment to be used for web.configs in Web Applications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top