appSettings - question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

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

Back
Top