app-config Questions

2

Solved

I've seen a variety of ways used to set boolean values in INI files: variable = true variable = 1 variable = on variable = yes Which is the most canonical, common, and/or preferred way?
Katar asked 17/9, 2012 at 22:3

6

I am trying to read the connection strings from my app.config but it only shows me one connection string and that too isn't in my app.config. Here's my code: System.Diagnostics.Debugger.Break(); C...
Ethnology asked 24/11, 2010 at 20:22

3

I have a PowerShell script that shells-out to nunit-console-x86.exe to run tests in assemblies ( DLLs ) that were built earlier in the script by shelling to MSBuild to compile a VS .sln Exec { inv...
Skirling asked 24/9, 2012 at 19:48

2

Solved

I have two projects within my solution, for this example I will call them project A and B. Project B references A. Can Project B access the app.config properties of project A? I wish to access an...
Hussar asked 1/4, 2014 at 12:12

6

Solved

I'm interested in displaying in a Windows Forms app a list of N radio buttons for the user to choose a target database server. I would like to add the SQL Server connection strings in the app.confi...
Anticoagulant asked 7/10, 2009 at 8:31

4

Solved

I have a config file that is used in several projects, general.config, looks like: <?xml version="1.0" encoding="utf-8" ?> <appSettings> <add key="mykey1" value="myvalue1"/> &...
Budget asked 29/6, 2011 at 6:1

3

Solved

Here is the code I'm using: private void SaveConfiguration() { if (txtUsername.Text != "" && txtPassword.Text != "") { ConfigurationManager.AppSettings["Username"] = txtUsername.Text; ...
Alain asked 18/11, 2010 at 15:59

1

I'm creating a .NET Standard 2.0 library to be consumed from a .NET Framework 4.6.1 application. This library needs EF Core, but I can't figure out how to read the app.config. In a .NET Framework ...
Polydeuces asked 28/9, 2017 at 10:33

8

Solved

I'm in the process of moving SQL server to a separate machine. Currently we are running our web server and sql server on the same box. So we have a production server with IIS and SQLServer and then...

15

Solved

Is it is possible to do something like the following in the app.config or web.config files? <appSettings> <add key="MyBaseDir" value="C:\MyBase" /> <add key="Dir1" value="[MyBaseD...
Unwitting asked 2/3, 2009 at 16:37

3

Solved

My scala application will be packaged into a jar. When I run my app, it needs to read an additional config file stored externally to my app jar. I am looking for functionality similar to the Typesa...
Patrick asked 12/8, 2013 at 19:50

2

I have one Windows Polling Service to send an automatic email each 10 minutes. I use Thread.Sleep(new TimeSpan(0, 10, 0)); to sleep the thread for 10 minutes, which is hard coded right now. To avoi...
Courtesy asked 27/7, 2017 at 8:41

1

As per Angular documentation, we can only inject Providers (not instances) in config blocks. https://docs.angularjs.org/guide/module#module-loading-dependencies But contrary to this Angular lets y...
Aldrin asked 10/6, 2017 at 6:26

5

Solved

Sorry for the long problem statement...I've spent two days debugging and have a lot of notes... I have a WCF data service and another process trying to connect to it as a client via TCP and/or HTT...
Justification asked 6/7, 2010 at 18:11

3

I am trying to set the compatibility switch "Switch.System.Xml.IgnoreEmptyKeySequences" from an entry in an app.config (or web.config) file, but the override appears to be ignored. To rem...
Shelf asked 14/9, 2015 at 14:26

3

Solved

I have a .NET 4.5 project with MVC 5 and EF 6, in Visual Studio 2013. I want to have transforms for app.config. I've installed the SlowCheetah project via NuGet, and (supposedly)[https://visualstu...
Avertin asked 9/12, 2014 at 22:13

2

Solved

I was wondering why nuget added the following code to my applications app.config file, after installing the Microsoft.Bcl.Async: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-c...
Tantalate asked 4/6, 2013 at 14:24

5

My team is in love with publish profiles. We have a number of testing environments that we work in, and using Web.config transforms we're able to substitute the names of machines in each environmen...
Gigantes asked 18/10, 2013 at 18:1

2

Solved

I have a console application with an App.Config with some keys. The user that will use this app needs to change the values of some of the keys before run it. If a publish my application I don't se...
Sac asked 16/6, 2017 at 14:45

4

Solved

I am new to shell script. I have a file app.conf as : [MySql] user = root password = root123 domain = localhost database = db_name port = 3306 [Logs] level = logging.DEBUG [Server] port = 8080 ...
Sedda asked 27/3, 2014 at 9:29

5

I use Entity Framework and I need to get my connection string so I can construct a context. I am using the POCO template. My context object has: string ConnectionString = "name=MyAppConfigConnect...
Toothbrush asked 5/7, 2011 at 18:26

3

Solved

I am installing a WPF Application using the ClickOnce deployment. There are certain settings in the app.config that need to be changed after the Application is installed. Although the app.config ex...
Eelgrass asked 6/5, 2009 at 9:33

8

Solved

I have the following problem: We have an application that loads modules (add ons). These modules might need entries in the app.config (e.g. WCF configuration). Because the modules are loaded dynami...
Ledoux asked 27/5, 2011 at 9:59

2

Solved

I have a C# application, and to organize its files I have some DLL's in a folder called "Data". I want the EXE to check this folder for the DLL's just like how it checks its current directory. If I...
Ceroplastics asked 27/4, 2012 at 5:31

3

Solved

I have a solution with two executable projects. Main.exe is dependent on Subordinate.exe. These projects both have App.config files, so in their respective output directories, I have Main.exe.co...
Immuno asked 17/1, 2012 at 18:7

© 2022 - 2024 — McMap. All rights reserved.