Questions tagged [application-settings]

application-settings are global code or data used for configuration

Application settings are used to define key/value pairs for a broad range of data, such as:

  • default values
  • access control
  • file paths
  • protocol handlers
  • localization mappings

References

785 questions
6
votes
1 answer

How to merge the applicationSettings of a class library into the host executable's config file

I am reading articles, forum posts about applicationSettings for almost a week now. In almost every thread there was someone that appears to have correctly pointed out that the class libraries cannot have config files when deployed and their…
5
votes
3 answers

winform's Application Settings : cannot save application settings which has been added during the run time

I having some issues with saving Application settings during the run time... If i change the setting scope to user, it works fine, but in application scope, nothing being happened... I've used : Properties.Settings.Default.Save(); any ideas…
Igal
  • 4,603
  • 14
  • 41
  • 66
5
votes
1 answer

Interface for Application Settings

Reed Copsey gave this response to the following SO Question: Which design patterns can be applied to the configuration settings problem? I prefer to create an interface for setting query, loading, and saving. By using dependency injection, I can…
cesara
  • 842
  • 1
  • 7
  • 19
5
votes
1 answer

ApplicationSettings isn't saved properly

I'm trying to save two Lists of objects in the phone ApplicationSettings, but I'm stuck at a strange issue (But it's probably me making a silly mistake somewhere). If I only save one of the lists, it works as supposed - It'll save it, and reload it…
David K
  • 3,153
  • 5
  • 18
  • 27
5
votes
2 answers

How to avoid storing passwords or other sensitive data in appsettings.json

I am working on a new ASP.NET Core web project based on Docker and micro services and I'm wondering if there is a way to avoid storing password or sensitive data in the appsettings.json. My question is how to specify secrets outside of the project…
Mselmi Ali
  • 1,139
  • 2
  • 18
  • 28
5
votes
2 answers

Akka ConfigException$WrongType: myconf has type STRING rather than OBJECT

I am trying to read external conf / property file in the Akka. And I am referring this post I have only one configuration i need to add more properties in myappConfiguration.properties. I can see properties files is able to load but not able to the…
Gautam
  • 3,707
  • 5
  • 36
  • 57
5
votes
3 answers

How to make app settings in .NET Core that translate to Azure app settings?

I can't remember where I saw this but I followed the advice on a blog when setting up my app configuration for my .NET Core MVC application. I created a model like this to hold some settings my app needed: public class BasePathSettings { public…
5
votes
3 answers

How to add app explanation for location service in settings

I would like to add app explanation for location service usage in setting like below image. Does anyone have idea how to do this? Thanks!
RayChen
  • 1,417
  • 2
  • 17
  • 36
5
votes
1 answer

Azure does not override application settings

In my Azure App Service I want to update application settings, but after publish from VS the keys doesn't override values from local Web.config In Azure it looks like: In the result my web.config on azure contains values from local settings …
5
votes
4 answers

Keep settings in sync between forms application and windows service (or any n-tier, really)

I have a Windows Service that performs a number of periodic activities, and I want to change the settings of this service from a Windows Forms app. I'm not sure, though, about the best way to make sure the service has the most updated user…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
5
votes
1 answer

Array of structures in Application Settings

What's a clean, canonical way to save a series of identically-structured simple config tuples in .NET Application Settings? Say my program's got (user-scope) settings like "server name", "address", "port". I'd just add those three to the Application…
hemflit
  • 2,819
  • 3
  • 22
  • 17
5
votes
0 answers

Programmatically restrict access of Mobile data for all apps in Android

Can any one have any idea to do restrict mobile data access for a particular app in android. Recently i found this feature on my MOTO G (2nd Gen) with 4.4.4 Kitkat version. How to do it programmatically ? This is the screenshot
ch3tanz
  • 3,070
  • 3
  • 16
  • 24
5
votes
3 answers

Preserve leading zeros when importing Excel into SQL

My office uses excel to prepare our data before importing it into a SQL database. However, we have been expreiencing the following error. When the data is imported from one computer it loses all of the leading zeros. However, when it is imported…
user3229461
  • 51
  • 1
  • 2
5
votes
1 answer

Why does this unrelated error happen when I try to setup Windows 8 settings?

I have a few lines of code that have worked fine for months, and now suddenly they do not work and I get a very strange error. Here is the function in question: public void OnCommandsRequested(SettingsPane settingsPane,…
borrrden
  • 33,256
  • 8
  • 74
  • 109
5
votes
3 answers

How to update external config files without rebuilding war file in Grails

How to update external config files (e.g.: config-ex.groovy, config-ex.properties) without rebuilding the war file in Grails? Restarting the application server will apply the new updates from external config files.
diep
  • 101
  • 1
  • 2
  • 4