Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / December 2005

Tip: Looking for answers? Try searching our database.

Protected Configuration in a Windows Application using C#.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roby2222 - 23 Dec 2005 17:54 GMT
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
Nuno - 27 Dec 2005 16:27 GMT
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.

> 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
[quoted text clipped - 6 lines]
>
> Nuno

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.