My.Settings wont update??

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

Maligui

You might need to update the settings in the properties. Did your
modification show up in your settings?
 
A

Arthur Dent

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

Ryan S. Thiele

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?
 

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

Top