PC Review


Reply
Thread Tools Rate Thread

appSettings - question

 
 
=?Utf-8?B?UGV0ZXIgU2NobWl0eg==?=
Guest
Posts: n/a
 
      22nd Feb 2005
Hi,

I tried to use the in-built configuration classes of the .net framework -
but I was hampered by some problems:

Reading the configuration data works just fine, but when I try to set/write
any configuration an exception occurrs saying that this property would be
readonly. What's going on here?

By the way, my main goal is to be able to write/read enormous configuration
settings (s.b.) with only few code:

public structure MySettings
dim ....[lost of declarations, also of structures]
end structure

What's the fastest way to read/write this information to disk?

Thanks
Peter
 
Reply With Quote
 
 
 
 
Peter Rilling
Guest
Posts: n/a
 
      22nd Feb 2005
You cannot write to the setting in .NET. The built-in classes do not
support this. The config file is only read when the application starts. If
you want the ability to change the settings, you will need to write your own
system.

"Peter Schmitz" <(E-Mail Removed)> wrote in message
news:9318EF98-CBF2-42C0-8839-(E-Mail Removed)...
> Hi,
>
> I tried to use the in-built configuration classes of the .net framework -
> but I was hampered by some problems:
>
> Reading the configuration data works just fine, but when I try to

set/write
> any configuration an exception occurrs saying that this property would be
> readonly. What's going on here?
>
> By the way, my main goal is to be able to write/read enormous

configuration
> settings (s.b.) with only few code:
>
> public structure MySettings
> dim ....[lost of declarations, also of structures]
> end structure
>
> What's the fastest way to read/write this information to disk?
>
> Thanks
> Peter



 
Reply With Quote
 
NuTcAsE
Guest
Posts: n/a
 
      22nd Feb 2005
or wait for 2.0 Btw if ur using 1.1 u can take a look at the
Enterprise Library from MS that comes with a Application Configuration
Management Block... im no 100% sure but i think it allows you to write
back to the configuration file. Heres the link:
http://www.microsoft.com/downloads/d...displaylang=en

Hope this Helps,

NuTcAsE

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ConfigurationSettings.AppSettings.Set question John Microsoft Dot NET Framework Forms 3 14th May 2007 04:08 PM
ConfigurationSettings.AppSettings.Set question John Microsoft Dot NET 3 14th May 2007 04:08 PM
ConfigurationSettings.AppSettings.Set question John Microsoft VB .NET 3 14th May 2007 04:08 PM
appsettings question Joe Van Meer Microsoft VB .NET 1 23rd Jan 2006 06:56 PM
Question about AppSettings? =?Utf-8?B?UnVkeQ==?= Microsoft ASP .NET 3 31st Jan 2005 03:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.