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 / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

Persisting Application Scoped Settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Dunaway - 13 Jul 2007 16:42 GMT
What what I have read, Application Scoped settings in the setting file
are read only.  Why is this?  Is there a good reason for this
restriction?

I understand that some settings will be different for each user of the
app, hence the User Scoped settings.  User scoped settings can be
changed and persisted at runtime.

But there are also settings that are not User Scoped (i. e.
Application Scoped) that still might need to be changed at runtime,
yet this is not possible.  Why?  Again, is there some good technical
reason for this restriction?

What alternatives are available to me to be able to persist
Application Scoped settings?

Thanks,

Chris
Peter Duniho - 13 Jul 2007 18:17 GMT
> What what I have read, Application Scoped settings in the setting file
> are read only.  Why is this?  Is there a good reason for this
> restriction?

One good reason is that application-scoped settings are generally things  
that should be set or changed only during program installation or by an  
administrator.

> [...]
> What alternatives are available to me to be able to persist
> Application Scoped settings?

The "old" mechanism should work fine: create a registry key under  
HKEY_LOCAL_MACHINE and store your settings there.  You will, of course,  
need administrator privileges to do that, which is as it should be (no  
regular user should be able to do anything that will affect any other  
user).

Pete
Nigel Aston - 18 Jul 2007 10:14 GMT
I thought Microsoft were going away from using the Registry and instead
just using files. Do you know if this is true - would you recommend
continuing to use the registry?
Nigel

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.