Home All Groups Group Topic Archive Search About

My.Settings wont update??

Author
19 Oct 2006 3:22 PM
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.

Author
19 Oct 2006 9:11 PM
Maligui
You might need to update the settings in the properties. Did your
modification show up in your settings?

--
Thiele Enterprises - The Power Is In Your Hands Now!
Show quoteHide quote
"Arthur Dent" <hitchhikersguideto-n***@yahoo.com> wrote in message
news:40DA530D-5C0A-497C-A129-3FB532289BA5@microsoft.com...
> 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.
Author
20 Oct 2006 3:12 AM
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.



"Maligui" <mali***@verizon.net> wrote in message
news:WRRZg.4290$kG5.1135@trndny07...
Show quoteHide quote
> You might need to update the settings in the properties. Did your
> modification show up in your settings?
>
> --
> Thiele Enterprises - The Power Is In Your Hands Now!
> "Arthur Dent" <hitchhikersguideto-n***@yahoo.com> wrote in message
> news:40DA530D-5C0A-497C-A129-3FB532289BA5@microsoft.com...
>> 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.
>
>
Author
20 Oct 2006 3:32 AM
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?

--
Thiele Enterprises - The Power Is In Your Hands Now!
Show quoteHide quote
"Arthur Dent" <hitchhikersguideto-n***@yahoo.com> wrote in message
news:AFBE0FFA-72EA-4BC8-A137-AD0630009348@microsoft.com...
>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.
>
>
>
> "Maligui" <mali***@verizon.net> wrote in message
> news:WRRZg.4290$kG5.1135@trndny07...
>> You might need to update the settings in the properties. Did your
>> modification show up in your settings?
>>
>> --
>> Thiele Enterprises - The Power Is In Your Hands Now!
>> "Arthur Dent" <hitchhikersguideto-n***@yahoo.com> wrote in message
>> news:40DA530D-5C0A-497C-A129-3FB532289BA5@microsoft.com...
>>> 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.
>>
>>