app-config Questions
2
I have been trying to fix version conflicts in my .NET 6 console project. I fail to find a way like app.config's BindingRedirect or CodeBase, which worked for this case in .NET Framework.
Is there ...
Disputant asked 3/4, 2022 at 14:22
6
I'm developping a Windows app based on the Windows Form template. I'm using .NET 3.5 version. In this app, the goal is that all the visual settings of the different forms can be managed from the Ap...
Kendrick asked 18/7, 2014 at 9:35
4
Solved
I am creating one class library project.
Now by default I have one App.Config file so that I am putting all environment specific data in that Config file.
Now based on the Environment (whether Dev...
Whitesmith asked 15/12, 2010 at 19:31
16
Solved
For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the same feature is not ava...
Physical asked 9/6, 2010 at 8:38
18
Im trying to add an app.config file to my DLL, but all attempts have failed.
According to MusicGenesis in 'Putting configuration information in a DLL' this should not be a problem. So obviously I...
Anhanhalt asked 27/2, 2009 at 10:53
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 two projects:
Console project (Test.exe)
Class Library project (Test.Data.dll)
My Class Library project contains an app.config file.
<?xml version="1.0" encoding="utf-8"?>
<con...
Longueur asked 3/2, 2011 at 17:20
2
Solved
When should I use Parameter store for saving configuration vs AppConfig? For example, if I had to change the log level at run time, should that be stored in SSM or Appconfig?
What are the pros and ...
Maddie asked 28/7, 2021 at 23:53
29
Solved
I have set up my AppSettings data in file appsettings/Config .json like this:
{
"AppSettings": {
"token": "1234"
}
}
I have searched online on how to read AppSettings values from .json file, ...
Suu asked 16/7, 2015 at 11:57
3
Solved
In my config file, i have some sensitive informations i wanted to encrypt for more security.
This is my code ( working as expected ):
class Program
{
static void Main(string[] args)
{
System.C...
Facelift asked 10/5, 2016 at 14:53
4
Solved
I am trying to create a console application using .NET framework 4.7.2. I see an app.config file by default present in the project.
App.config is used to store configuration details of project. Jus...
Consistence asked 9/2, 2023 at 7:47
6
I'm having a problem where the Entity Framework edmx file is apparently losing its relationship to the connection string that it was built with.
The designer for my .edmx file was working perfectl...
Insatiable asked 24/3, 2011 at 0:12
3
Solved
I am developing the console application and when I run the .exe file, I get the following error:
system.Configuration.ConfigurationErrorsException: Only one <configSections> element allowe...
Absentminded asked 29/11, 2012 at 10:39
12
Solved
I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties. The unit test application itself does not have an app.config file.
When I try to unit te...
Bisutun asked 5/12, 2008 at 15:1
2
Solved
I'm migrating one of our Visual Studio solutions to .Net Core 5. It has two projects: a WinForms application (legacy) in Visual Basic and a class library in C#.
I've noticed that the .config file g...
Brandes asked 6/10, 2021 at 8:52
2
Solved
How to create the log file in appData folder. The path is C:\Users\MYNAME\AppData\Roaming\Project\My Project\Application. As soon as my project starts, the project folder is created on this path wh...
Dopester asked 10/6, 2014 at 8:24
3
Solved
We have a Visual Studio 2010 solution that contains several C# projects in accordance with Jeffery Palermo's Onion Architecture pattern (http://jeffreypalermo.com/blog/the-onion-architecture-part-1...
Bathyscaphe asked 25/8, 2010 at 19:5
6
Solved
I'd like to store a one dimensional string array as an entry in my appSettings. I can't simply separate elements with , or | because the elements themselves could contain those characters.
I was t...
Weisberg asked 2/5, 2012 at 17:54
4
Solved
I'm developing a WPF application which depends on Entity Framework for data access.
At the first time installation I need to create a new connection string based on the User input, then updating Ap...
Shiri asked 12/6, 2015 at 14:7
7
I have done a project in C#.NET where my database file is an Excel workbook. Since the location of the connection string is hard coded in my coding, there is no problem for installing it in my syst...
Amritsar asked 24/10, 2012 at 5:33
2
Solved
In my appsettings.json, when I use this snippet:
"ConnectionStrings": {
"CssDatabase": "Server=BLUEJAY\\MSSQLSERVER2014;Database=CSS;Trusted_Connection=True;"
}
I can connect to the db as expe...
Buckler asked 26/7, 2017 at 12:40
7
Solved
I've got a method that reads settings from my config file like this:
var value = ConfigurationManager.AppSettings[key];
It compiles fine when targeting .NET Standard 2.0 only.
Now I need multiple ...
Luminary asked 1/12, 2017 at 10:57
3
Solved
I have a main Web.config file, and under that there is a Web.Test.config, Web.Development.Config etc.
When I preview the transformation via SlowCheetah on the Test config, it appears to transform ...
Undernourished asked 22/2, 2016 at 16:52
7
Solved
I am having trouble encrypting a connection string in app.config. I have code that will protect the connectionStrings section of app.config, but the password is still displayed in plain text.
I ne...
Gildea asked 24/7, 2012 at 18:47
6
Solved
When I try to open my app config file by
ConfigurationManager.OpenExeConfiguration(filePath);
it returns an exception, because there is no file. But I need to create this file in this case. But ...
Obovoid asked 16/12, 2013 at 15:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.