My.Settings wont update??

  • Thread starter Thread starter Arthur Dent
  • Start date Start date
A

Arthur Dent

Hello All,..

I have some settings stored in the project settings which show up under
My.Settings. ...
All works fine.

Now, I wanted to change the value of one of these settings, so I went into
the app.config file, and changed the value, and reran the app. But it still
picks up the old value, and doesn't pay attention to the new value which I
entered in the app.config file.

I tried doing a My.Settings.Reload(), but it STILL wont read the new value
in from the file.

How can I get it to actually pay attention to changes to the settings?

Thanks in advance.
- Arthur Dent.
 
You might need to update the settings in the properties. Did your
modification show up in your settings?
 
I think *perhaps* it is that it was the My.Settings for a DLL project, and
since they are stored in the app.config file, and the DLL's do not copy
their app.config file, it didn't make any difference to change them.
Which then kind of begs the question, of why a DLL project even HAS a
My.Settings page in the property sheets.
 
I belive the app.config file is embeded into a windows project. It is
external in a ASP project.

I would try the 'Settings' pane to setup your settings (eg Data connections,
web services, etc.)
This will update the config file w/o errors. But if it is something else,
then you will have to go to another pane.

What are you trying to add/modify? Which setting?
 
Back
Top