Question Problem with my.settings while deploying in LAN

akhilraj005

New member
Joined
Nov 27, 2015
Messages
3
Programming Experience
Beginner
Hi all,

I've developed a small vb.net program (vb2008) for tracking credit proposals received in my office from branches under our region. what it does is keep a database of proposals received in office (ms access 2007) , automatically mail the branch about the receipt of proposal and people use to periodically update the progress of work.

The program is kept on a shared folder (office LAN) and every one will access the exe from there. I have not installed it, instead using the 'release' version from bin.

recently i made a few improvement in the software and i'm stuck after i deploy it on LAN. the problem is that there are 3 data which is stored in My.Settings which is basically string values . one is the 'Name of region' and other two are passwords which can be changed by the user.

My problem is that after deploying the program in the share folder, the changes made to My.setting value is not reflecting in the other computers in the LAN even though program is located in a shared location. other than my.settings everything is woking fine and database is getting updated also.


can anyone suggest a way to solve this problem ??? i want the change made in my.settings to reflect in all computers who are accessing the file from share folder.


any help will be appreciated. Thanks in advance
 
Thanks for the quick reply...

yes, user scope. I learned that user settings are saved in user.config which is saved in client computer.Is there any way we can save it in exe root folder itself ? Coz in my case i want to push some settings administratively which should reflect in all the PCs accessing it from shared folder
 
Is there any way we can save it in exe root folder itself ?

No. The idea is that every user has their own values for those settings and those values are stored in the user config file in the user's own personal folder. I think that ClickOnce would handle this settings update automatically for you, so you probably should have used that. As it is, you might have to write some code to manually update the user config file.
 
Back
Top