app-config Questions
16
Solved
Is there an equivalent to app.config for libraries (DLLs)? If not, what is the easiest way to store configuration settings that are specific to a library? Please consider that the library might be ...
Congo asked 4/3, 2011 at 6:40
3
Solved
I have a console application which has its own App.config.
I need to change some values in section time to time.
My problem is, when I execute the exe within the bin/debug folder it gets the rele...
Decemvirate asked 13/7, 2012 at 8:39
12
Solved
How can I get the user and password from such a connectionString in the app.config with a .NET function?
Of course I could read that string and get the value after the ID= and Password=.
<con...
Lactescent asked 26/10, 2011 at 8:14
13
Solved
I've created a simple unit test project to read an app.config file. Target framework is Core 2.0. I also created a Core 2.0 console app, to sanity-check myself to make sure I wasn't doing anything ...
Subjoinder asked 7/2, 2018 at 14:54
5
Solved
I have noticed on a few machines in which my application's user.config file is somehow becoming corrupted and is empty when opening. I can't seem to figure out why this is happened. Is there a comm...
Coenocyte asked 5/3, 2012 at 18:54
3
I have written a C# program for saving and reading PDF files. The program saves the output files to the local computer's bin folder. I want my program to access files from a different computer.
I ...
Stilton asked 11/12, 2012 at 19:2
7
Solved
I have some settings in my app.config which I intend to be 'global' - ie. any user can change them, and all users get the same setting.
But unless I change them to be user settings, they are read ...
Perak asked 16/4, 2009 at 23:4
4
Solved
We are in the process of implementing a DevOps strategy for our client deployed desktop app (winforms). Until now, we used SlowCheetah to do our config transforms (ex: select QA from config manager...
Stickler asked 2/11, 2018 at 18:13
8
Solved
The following example fills the ItemsControl with a List of BackupDirectories which I get from code.
How can I change this so that I get the same information from the app.config file?
XAML:
<...
Pump asked 22/11, 2009 at 15:59
7
Solved
An app I use interprets a .NET .config file. I added a line specifying the path to a certificate it needs
<add key="Certificate" value="..\certificate.abc"/>
However, I found the app only ...
Albertinaalbertine asked 23/4, 2013 at 11:25
7
Is there a way to automatically use a separate app.config when building in release mode?
In other words, I want to test with one app.config, and release with another.
Currently, I keep a separate...
Assimilative asked 18/8, 2009 at 17:54
5
In my c# form application (created in VS2010, using .NET 4.0) I use an application setting to store an output path.
Previously this setting was configured with a user scope, but I had to change it...
Spitler asked 8/11, 2012 at 22:22
22
var connection = ConnectionFactory.GetConnection(
ConfigurationManager.ConnectionStrings["Test"]
.ConnectionString, DataBaseProvider);
And this is my App.config:
<?xml version="1.0" encodi...
Jounce asked 30/6, 2011 at 14:54
12
Solved
In my winform app, I am trying to add a userSetting, although the error is occuring with appSettings too. When the setting is added I get an exeption thrown that says: "Configuration system failed ...
Goshorn asked 14/1, 2009 at 14:52
3
Solved
Here is my app.config
<configuration>
<configSections>
<section name="procedureList" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.30319, Culture=neutral...
Rora asked 8/8, 2012 at 21:4
4
Solved
I am trying to retrieve values from my App.config file which is stored in my working directory, however when I run the program it returns null. I am very confused why this is so, and have looked ov...
Ventilate asked 1/12, 2010 at 23:17
3
Solved
I'm not getting as how to write a message in app.config which consists of two or more lines.
My usual code in config file is :
add key="msg_test" value="This is test message."
And I read it in...
Fingernail asked 26/4, 2012 at 10:26
5
Solved
In compiling a solution ported from .NET 1.1 in VS2003 to .NET 3.5 in VS2008, I get several suggestions, of which this one is representative:
Consider app.config remapping of assembly "System.Wind...
Paresthesia asked 3/10, 2013 at 16:21
3
Solved
I have a WPF application I am building. I am using Visual Studio Community 2015. In an effort to create a "true" release build, I am changing up some build settings so it only generates necessary f...
Caecum asked 27/10, 2016 at 16:10
3
Solved
I have following issue: I'm introducing new feature into application (run as Windows Service) and I would like to have that new feature controlled (on/off) using some kind of configuration file ent...
Sensillum asked 22/4, 2011 at 6:26
6
Solved
When developing a .NET Windows Forms Application we have the choice between those App.config tags to store our configuration values. Which one is better?
<configuration>
<!-- Choice 1 -...
Congreve asked 20/1, 2009 at 11:38
4
Solved
The Environment:
I've got three projects in my solution currently:
A .NET Standard 2.0 library with some code I'd like to test.
A .NET Core 2.2 console app that references the library to make su...
Langdon asked 5/4, 2019 at 19:6
4
I have app that configures its trace source as follows:
var traceSource = new TraceSource("MyTraceSource");
traceSource.Switch = new SourceSwitch("MyTraceSwitch") { **Level = SourceLevels.Inform...
Odilia asked 15/2, 2013 at 8:57
2
I'm trying to synchronize all of the DLL versions in my solution with many projects. I noted that my app.config contains several assembly binding redirects like so:
<dependentAssembly>
<...
Keening asked 9/2, 2018 at 23:52
5
I want to read the app.config value, show it in a message box, change the value using an external text editor, and finally show the updated value.
I tried using the following code:
private void b...
Heroism asked 7/4, 2013 at 10:35
© 2022 - 2024 — McMap. All rights reserved.