|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
My.Settings wont update??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? -- Show quoteHide quoteThiele 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. 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. > > 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? -- Show quoteHide quoteThiele Enterprises - The Power Is In Your Hands Now! "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. >> >>
Question about walking the file system
Searching desparately for createmailslot example in VB.NET (MSDN universal Subscriber) Show ToolTip on every Control continuously Starting process using shell execute returns nothing Transparent listview Checked List Box check in program Compressing textfiles, but still read them windows service + vb.net + windows 2003 right click on a label |
|||||||||||||||||||||||