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
10
votes
2 answers

Is there a maximum size for application settings?

Background: I had a large xml string in a Setting and it failed to deserialize. The XmlSerializer complained it was not valid xml. When looking at the string in Project > Settings it looked truncated. I googled for if there is a limit in size for…
Johan Larsson
  • 17,112
  • 9
  • 74
  • 88
10
votes
2 answers

Define a custom path where the user.config file should be saved?

If I rename my compiled application for example from myapp.exe to app.exe then when I run the renamed executable a new user settings folder is generated in this path: C:\Users\{User}\AppData\Local\{CompanyName}\{ExecutableName}_Url_{SystemGUID or…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
10
votes
3 answers

How is User.config created and how it is used

I started reading about config files and I read about user.config. Googled about it, but couldnt find how it is created and how it is used. Also read that for each user a seperate user.config will be created. Even read questions in StackOverflow,…
Shrikey
  • 858
  • 3
  • 11
  • 34
9
votes
2 answers

Issue using Black formatter in PyCharm

I am trying to setup the formatter "black" to work with PyCharm. I have tried setting it up with both the standard External Tools preferences and using the Files Watcher Plugin. Neither has worked for me. I am getting these errors: I have it…
9
votes
1 answer

Add comments in App.config in Winform application

I'm developing a windows application with C# . I need to add some comments into Application settings ( App.config ) Here is my App.config
Yuresh Karunanayake
  • 519
  • 1
  • 4
  • 10
9
votes
2 answers

Application Settings saving

I have two assemblies in my application. MyApplication.BO and MyApplication.GUI. I have configured property-settings for my BO assembly. Now when I am trying to compile the following code: public class MyApplicationInfo { private string…
user366312
  • 16,949
  • 65
  • 235
  • 452
9
votes
1 answer

SettingsProviderAttribute replacement for application-level custom SettingsProvider

In a .NET application, if you have specific Settings need, such as storing them in DB, then you could replace LocalFileSettingsProvider with a custom settings provider of your, examples: Create a Custom Settings Provider to Share Settings Between…
Adam
  • 3,872
  • 6
  • 36
  • 66
8
votes
1 answer

.NET ApplicationSettingsBase Should I call Upgrade() every time I load?

We have application settings derived from ApplicationSettingsBase. When we push a new version of our app we need to call: // // Summary: // Updates application settings to reflect a more recent installation of the // application. …
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
8
votes
3 answers

Documenting (XML) Application Settings in Visual Studio 2010

I recently created a (C#) project with Visual Studio (2010) and used some Settings (which I created under Properties). The only place I found where I can add some XML comments for my documentation, would be in Settings.Designer.cs. However this file…
Len
  • 2,093
  • 4
  • 34
  • 51
8
votes
2 answers

Where should I store my application data?

I have an application that needs to store data. Currently, I am using the built-in Application Settings to do it, but it only gives me two choices: application and user scopes. Ideally, I want a "local" scope that allows the application to run…
ATL_DEV
  • 9,256
  • 11
  • 60
  • 102
8
votes
3 answers

How to get an Application Settings shared to all users that could be changed at run time

I need some setting of an application that will be shared among all users of the computer, but could also be changed at at run time. That seam simple, but according to the Application Settings MSDN article, it's either one or the other. There are…
DavRob60
  • 3,517
  • 7
  • 34
  • 56
8
votes
1 answer

Convention based binding of constructor string arguments with Ninject

I'm using Ninject as IoC container in my project. I have following class: public class SomeRepository:ISomeRepository { public SomeRepository(string someDatabaseConnectionString) { // some code here.. } } In my application…
8
votes
2 answers

Can someone provide a quick App.config/Web.config tutorial?

I've used these two configuration files many times before, but I've never taken the time to fully understand how they really work. As most people do, I understand the basics in how to call WebConfigurationManager.AppSettings["key"] to get config…
8
votes
4 answers

How to change application settings (Settings) while app is open?

I've written a class that should allow me to easily read and write values in app settings: public static class SettingsManager { public static string ComplexValidationsString { get { return…
agnieszka
  • 14,897
  • 30
  • 95
  • 113
7
votes
1 answer

How to keep Django app settings in database, or change on-the-fly?

Does anyone have a suggestion on how to create a system that allows me to change settings on the fly? For example, I have a textarea that users can fill, and right now it has a maximum character limit of 1000. Someday I might want to change it to…
rabbid
  • 5,465
  • 7
  • 26
  • 37