appsettings Questions
3
Solved
I have a couple of appSettings in my app.config file, with default values:
<appSettings>
<add key="Foo" value="one"/>
<add key="Bar" value="two"/>
</appSettings>
which...
Circumjacent asked 20/5, 2015 at 23:20
2
Solved
Maybe there is an answer to my question already but I was not able to find it after a long time searching.
My use case is the following: I have one ASP.Net Core 3.1 web application. It uses MSSQL d...
Stirrup asked 24/8, 2020 at 19:0
10
My Web application needs to read the Document DB keys from appsettings.json file. I have created a class with the key names and reading the Config section in ConfigureServices() as:
public Startup(...
Inning asked 30/9, 2016 at 12:32
3
Let's assume we have this section in appsettings.json
{
"crypto":{
"A": "some value",
"B": "foo foo",
"C": "last part"
},
...
}
Where "crypto" is json serialization of some cryptographic k...
Unfledged asked 30/5, 2016 at 12:23
2
Solved
I'm trying to determine if it's possible to configure the column options for serilog sink mssqlserver in the appsettings.json file for an ASP.Net Core 2 project.
I create and configure the logger ...
Neoplasty asked 8/2, 2018 at 17:0
1
Solved
So I'm having issues trying to get Visual Studio to add user secrets to a property that is an array. I have a feeling this sort of thing can't be done but I really need to have a way of iterating t...
Lashawn asked 14/2, 2020 at 21:56
4
Solved
I am developing a web app which requires a username and password to be stored in the web.Config, it also refers to some URLs which will be requested by the web app itself and never the client.
I k...
Choker asked 10/9, 2008 at 14:31
1
I have this provider dictionary in appsetting.json
"AppSettings": {
"Providers": {
"http://localhost:5001": "Provider1",
"http://localhost:5002": "Provider2"
},
"ArrayWorks": [
"http://loca...
Motoneuron asked 10/6, 2018 at 21:25
1
Solved
I am trying to inject IConfiguration (Microsoft.Extensions.Configuration package) into Program.cs and don't know if that is possible and therefore obviously don't know how to do it, if possible.
I'...
Tipper asked 26/3, 2020 at 13:9
4
Solved
I need to always know which options the user choose on the push notification settings.
(The options are - alert, sound and badges)
So when my app launch I call:
UIRemoteNotificationType types = [...
Aerostat asked 17/4, 2012 at 12:12
6
Solved
I am trying to learn the various ways to retrieve configuration info so I can determine the best path for setting up and using configuration for an upcoming project.
I can access the various single...
Pragmatist asked 22/11, 2017 at 11:1
1
I have generated a new web project. it seems that in .net core 3.1 the appSettings.jsons were generated and working fine. the problem is that they are loaded and controlled by the runtime and not m...
Forgotten asked 5/2, 2020 at 16:7
4
Solved
In WPF, Can I use binding with values defined in Settings? If this is possible, please provide a sample.
Hargis asked 10/5, 2009 at 9:55
0
I am trying to edit appsettings.json in runtime.
I found great solution how to update this file:
https://mcmap.net/q/321986/-how-to-update-values-into-appsetting-json
I did everything according ...
Outherod asked 10/1, 2020 at 7:57
1
I am trying to include an appsettings.json file in a .NET Core console app where I am using HostBuilder, and attempting to add a section (AppVars) to the configuration. When I try to do this, I get...
Utilitarianism asked 10/12, 2019 at 19:52
4
Solved
I have an ASP.NET Core application going on an have setup Github auto-deploy on it. But since it's an open repo I obviously don't want to upload my correct configuration file.
What I'd like to do ...
Lead asked 23/10, 2016 at 19:9
9
Solved
How do I check to see if an Application Setting is available?
i.e. app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key ="someKey" val...
Greenwood asked 20/7, 2010 at 23:51
8
Solved
My question:
How can my iPhone-app tell the iOS, that the user did select a language in the apps preferences, that is different from the language set in the general settings?
Other formulation of t...
Consignee asked 30/3, 2012 at 8:58
3
Solved
I sometimes to this:
In the Azure portal, I go to "App Services", then I click on my web app, and then I go to "Application Settings".
Here I change one value from the "App Settings" list:
Eg....
Swat asked 18/4, 2017 at 20:48
2
Solved
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 questi...
Gentilism asked 28/7, 2019 at 6:9
3
When you start an ASP.NET Core project from Visual Studio (2017) it assumes the working directory is where the source code is located, not where the built files are actually placed.
Which means th...
Isolecithal asked 4/7, 2019 at 13:2
2
Solved
I have one .netcore Web App running in "docker". So started to cluster it with kubernetes. Has four configs on the appsettings.json that will be converted by environment variables(all between "${}"...
Willable asked 20/3, 2019 at 23:52
1
Solved
Long story short I can extract the appsettings.json to the Configuration type when I use C#-like classes:
type Connection() =
member val Host = Unchecked.defaultof<string> with get,set
mem...
Cephalization asked 4/6, 2019 at 11:22
4
Solved
I have a .NET Core WebApi project. To read the appsettings in an easy way, I configure the options to be injected with DI. This works fine. However if I try to call Configure<>() with a gener...
Glindaglinka asked 20/5, 2019 at 9:40
7
Solved
What is the standard structure to add keys to appsettings.json?
Also, how to read those values in our run.csx?
Normally in app.config, we had ConfigurationManager.GetSettings["SettingName"];
Is the...
Exam asked 20/2, 2017 at 7:3
© 2022 - 2024 — McMap. All rights reserved.