appsettings Questions
2
Solved
I am trying to read the application name from the App.Config. This is net461 console app. I have added the Serilog.Settings.AppSettings package. And also added the following serilog configs on App....
Secret asked 16/1, 2018 at 11:35
4
Solved
I need database connection string in two places in appsettings.json.
Is it possible to introduce common variable or json-path related references into json file to avoid potencial problems?
It wo...
Ericaericaceous asked 16/10, 2019 at 12:34
3
Solved
I have the following appsettings.json configuration:
{
"Serilog": {
"Using": [],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning"
}
},...
Lilia asked 17/3, 2020 at 14:37
7
Solved
My app uses appsettings.json for some settings. If appsettings.local.json is present, that should override appsettings.json for whatever settings it contains. So far, no problem.
But I use git for...
Sirup asked 29/5, 2017 at 19:23
5
Solved
I'm creating an ASP.net Core 2.0 app to run on the .net Core 2.0 runtime, both currently in their Preview versions. However, I cannot figure out how to have Kestrel use something other than the def...
Cacique asked 22/5, 2017 at 16:26
14
Solved
I have the following class in NET Core2.0 App.
// required when local database does not exist or was deleted
public class ToDoContextFactory : IDesignTimeDbContextFactory<AppContext>
{
publ...
Buhler asked 21/8, 2017 at 12:9
16
Solved
I am currently working on project using asp.net core v1.1, and in my appsettings.json I have:
"AppSettings": {
"AzureConnectionKey": "***",
"AzureContainerName": "**",
"NumberOfTicks": 62135596...
Nagano asked 14/1, 2017 at 18:49
4
Solved
How can you check if a configuration section exists in the appsettings.json in .NET Core?
Even if a section doesn't exist, the following code will always return an instantiated instance.
e.g.
va...
Pod asked 19/6, 2017 at 23:34
4
Solved
I have a .Net core worker service, which I am running as a windows service. The service is using appsettings.json file for the config information. After installing the service using SC CREATE comma...
Unavailing asked 4/12, 2019 at 9:39
5
Below is the Key-Vault problem which I am facing.
I have a Key-Vault which stores some keys which is used in web-app and functions using
@Microsoft.KeyVault(SecretUri=)
The value of the secret ...
Spae asked 3/4, 2019 at 5:51
2
Solved
I have a .NET 6 console app that runs on multiple servers to monitor apps on them.
The multiple servers already have their environment variable setup for other apps that use these values.
For examp...
Barkley asked 15/8, 2023 at 20:42
5
I recently noticed some strange behaviour in Visual Studio. If I edit my appsettings.json file then run in debug F5, the changed config is not picked up by the compiler.
Trek asked 21/3, 2023 at 11:55
14
Solved
I've defined some values in my appsettings.json for things like database connection strings, webapi locations and the like which are different for development, staging and live environments.
Is th...
Gaekwar asked 22/9, 2017 at 11:59
19
Solved
Okay, I know that there are many question about it, but they are all from many time ago.
So. I know that it is possible because the Map app does it.
In the Map app if I turn off the localization ...
Moselle asked 13/4, 2011 at 21:10
7
For the normal IOptions interface, you can manually build an instance e.g. this SO question.
Is there any equivalent way to make an IOptionsMonitor instance without using DI?
Bourgeoisie asked 4/12, 2018 at 1:28
24
Solved
I am not sure what am I missing here, but I am not able to get the values from my appsettings.json in my .NET Core application. I have my appsettings.json as:
{
"AppSettings": {
"V...
C asked 25/10, 2017 at 19:33
28
Solved
I'm working on a C# class library that needs to be able to read settings from the web.config or app.config file (depending on whether the DLL is referenced from an ASP.NET web application or a Wind...
Humorous asked 27/7, 2009 at 16:58
6
Solved
In my asp.net core 3.1 console app. In main class I have code like this:
class Program
{
static void Main(string[] args)
{
var builder = new ConfigurationBuilder();
BuildConfig(builder);
var ...
Exhume asked 17/12, 2020 at 22:41
2
How to get settings from an appsettings.json file in a .NET 6 console application?
program.cs file:
public class Program
{
private static ManualResetEvent _quitEvent = new ManualResetEvent(false);...
Lanti asked 9/10, 2022 at 7:30
7
Solved
I am writing an Azure function in VS 2017. I need to set up a few custom configuration parameters. I added them in local.settings.json under Values.
{
"IsEncrypted":false,
"Values" : {
"CustomU...
Drenthe asked 12/10, 2017 at 16:32
26
Solved
I am trying to write my connection string in my appsettings.json file and bring it into my startup file but I keep getting a Value cannot be null.
Parameter name: connectionString. I have been usin...
Apodal asked 29/11, 2016 at 19:53
1
Solved
In my project i have the following files:
appsettings.json and appsettings.Development.json
so the idea is to load the file appsettings.Development.json in the Development environement and the apps...
Evan asked 28/10, 2022 at 13:51
8
Solved
public class Bar
{
public static readonly string Foo = ConfigurationManager.AppSettings["Foo"];
}
In the .NET Framework 4.x, I can use the ConfigurationManager.AppSettings ["Foo"] to get Foo in ...
Feminism asked 3/5, 2017 at 10:14
4
Solved
Did you notice that Azure upgraded the AppSettings Management? Now it s possible to update multiple AppSettings in one shot using the Advanced Edit Options, but the formating is not the same as App...
Castra asked 1/8, 2019 at 19:2
18
Solved
I'm not able to access values in configuration file.
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var clientsFilePath = config.AppSettings.Setting...
Gardenia asked 26/5, 2012 at 13:25
1 Next >
© 2022 - 2024 — McMap. All rights reserved.