user.config

How to get hash value in user.config path?

情到浓时终转凉″ 提交于 2021-02-18 11:12:07
问题 I have installed .NET application. Its config location is %AppData%\[CompanyName]\[ExeName]_Url_[hash]\[version]\user.config. I need to get [hash] value from another application. According with MSDN, user.config path template is [c:\Documents and Settings]\[username]\[Local Settings]\Application Data\[companyname]\[appdomainname]_[eid]_[hash]\[version] where [hash] is SHA1 hash of evidence (in my case eid=Url). I noticed the following things: [hash] changes with application installation path

How to save user.config to AppData\Roaming folder instead of AppData\Local?

懵懂的女人 提交于 2019-12-18 10:36:09
问题 Introductory Example This code Properties.Settings.Default.MyUserSettingBlah = "some new value"; Properties.Settings.Default.Save(); saves the user.config file to C:\Users\MyUserName\AppData\Local\My_Company_Name\MyApp_Url_vb2s5kwidefdmxstmabckatcyl5t0lxd\1.0.0.0\user.config Question How can I save user.config to C:\Users\MyUserName\AppData\ Roaming \... instead of C:\Users\MyUserName\AppData\ Local \... ? 回答1: I stumbled on this now... As far as I know, it should be that you should put:

c# error:Unrecognized configuration section userSettings - stop program reading user.config?

ⅰ亾dé卋堺 提交于 2019-12-08 14:41:44
问题 In my c# form application (created in VS2010, using .NET 4.0) I use an application setting to store an output path. Previously this setting was configured with a user scope, but I had to change its scope to application. After doing this I now get an Unrecognized configuration section userSettings error on start up of the form (note the program has been executed before with the setting's scope set to user): InnerException: System.Configuration.ConfigurationErrorsException Message=Unrecognized

How to save user.config to AppData\\Roaming folder instead of AppData\\Local?

与世无争的帅哥 提交于 2019-11-29 23:08:30
Introductory Example This code Properties.Settings.Default.MyUserSettingBlah = "some new value"; Properties.Settings.Default.Save(); saves the user.config file to C:\Users\MyUserName\AppData\Local\My_Company_Name\MyApp_Url_vb2s5kwidefdmxstmabckatcyl5t0lxd\1.0.0.0\user.config Question How can I save user.config to C:\Users\MyUserName\AppData\ Roaming \... instead of C:\Users\MyUserName\AppData\ Local \... ? Ivan Ičin I stumbled on this now... As far as I know, it should be that you should put: [global::System.Configuration.SettingsManageability(System.Configuration.SettingsManageability.Roaming