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 / XML / November 2005

Tip: Looking for answers? Try searching our database.

Writing on app.config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Caetano - 08 Nov 2005 11:51 GMT
Is that possible change attributes values that belong the app.config?
Example i want to change the
<ConfigProvider>  encrypted="true" to "false".
Can somebody help me???
Truong Hong Thi - 09 Nov 2005 02:12 GMT
It is just a well-formed XML document, so you can load and change it as
any other XML documents.

However, as I see it, configuration should be maintained by the admin,
maybe with Notepad or some admin tool, and should not be updated
directly by your app unless you are writting that tool itself, or
writting an installation packake. If it is to store user preferences,
store in the registry or a separate file instead.

----
Thi - http://thith.blogspot.com
Marc Scheuner [MVP ADSI] - 09 Nov 2005 14:19 GMT
>Is that possible change attributes values that belong the app.config?
>Example i want to change the
><ConfigProvider>  encrypted="true" to "false".
>Can somebody help me???

You cannot do this directly in VS.NET 2002/03 - it has been added in
the .NET 2.0 / Visual Studio 2005 release timeframe.

For the 2002/2003 versions, you would have to load the app.config as
an XML file, change what needs to be changed, and save it back.

Marc

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.