app-config Questions
3
Solved
I need to POST JSON data to a TLS 1.2 Endpoint. I would like to have the SecurityProtocol specified in the App.config instead of being hardcoded in the source and do not want to set the registry of...
Mangosteen asked 3/8, 2017 at 18:31
9
Solved
This is my App.Config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="lang" value="English"/>
</appSettings>
</configuration>...
Estrange asked 22/6, 2012 at 2:43
0
In visual studio I have solution with 3 projects in it. Project 1 must use configuration file which belongs to project 2. Normally, to access current project configuration file, code below must be ...
Iconography asked 6/4, 2019 at 9:41
5
Solved
I recently had to edit my app.config file to change the connection string for an Entity Framework data model (.edmx file). But I'd like to know: Is there a way to edit the EF connection string usin...
Propinquity asked 14/3, 2011 at 14:14
5
I am getting this error while invoking a method of my web service, I dont know what to do anymore :s
Here is the exception details:
{"The provided URI scheme 'http' is invalid; expected
'https...
Burk asked 14/2, 2014 at 12:22
3
This warning generated from my app.config file is driving me crazy and I have been searching without getting any real answer as to why this is the case. Here is the code.
Any help would be great...
Proselytism asked 27/8, 2014 at 4:38
1
Solved
We are migrating some .NET applications from full framework to .NET core and we are trying to find out the best way to do so.
One of the major changes is the one related to the way applications a...
Carolecarolee asked 28/1, 2019 at 22:23
11
Solved
I used the second solution of
How to resolve "Could not find schema information for the element/attribute <xxx>"?
I.e. created a XSD with the button to create a scheme. I changed t...
Kristynkrock asked 5/8, 2012 at 13:41
10
Solved
I can't seem to be able to access the app.config database connection string in my c# winforms app.
app.config code
<connectionStrings>
<add name="MyDBConnectionString" providerName="S...
Pipistrelle asked 12/12, 2011 at 14:48
1
I'm developing a windows application with C# . I need to add some comments into Application settings ( App.config )
Here is my App.config
<connectionStrings>
<add name="SLTBillCo...
Bussard asked 6/11, 2018 at 4:6
7
Solved
I'm building an application that is used by several different customers. Each customer has a fair amount of custom business logic, which I have cleverly refactored out into an assembly that gets lo...
Algeria asked 6/10, 2008 at 20:29
2
Solved
I have to save 2 different groups of settings in my root settings group. It should looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<...
Loreenlorelei asked 15/9, 2018 at 12:5
2
Solved
I have a DLL that references a web service.
The block it has put into the app.config is (I have changed the names but you'll get the idea):
<applicationSettings>
<DLLName.My.MySettings&...
Crosspatch asked 1/10, 2009 at 10:56
2
Solved
I created a simple webapi project with dotnet core.
I'm trying to set the running environment using the ASPNETCORE_ENVIRONMENT system variable.
C:\devel\apps\webapi>set ASPNETCORE_ENVIRONMENT=...
Octangle asked 14/8, 2018 at 23:21
3
When i am using a web application, the line of code below
Configuration objConfig =
ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None);
in class library are giving this e...
Papillose asked 23/5, 2013 at 17:46
3
Solved
I have a class library that contains a valid connectionString inside the app.config. Inside that class library I want to use it with
ConfigurationManager.ConnectionStrings["NAME"].ConnectionString...
Stone asked 4/9, 2010 at 10:44
3
Solved
Currently im working on a WPF version of an existing console application.
In the console application i use log4net to do all my logging.
Therefore i configured all my appenders etc in the App.confi...
Pension asked 13/8, 2014 at 8:58
3
Solved
I need to set my application's culture through an App.Config file, so that "pt-BR" is used automatically for parsing dates without the need to manually inform the culture for each operation.
As fa...
Astrakhan asked 1/2, 2012 at 22:8
1
Solved
I'm having a strange problem. I have a bunch of integration tests projects. Each test project has a configuration file (app.config).
Currently, in my "Run Integration Tests" build step, the NUnit3...
Working asked 23/5, 2018 at 14:43
4
Solved
I want to change the location where my application looks for the app.config file.
I know that I can use ConfigurationManager.OpenExeConfiguration() to access an arbitrary config file - however, w...
Cruller asked 3/9, 2010 at 1:18
4
for an easiness of my application I would need to have "runtime" element of app.config in separate file.
Tried something like
<runtime file="runtime.conf" />
and also
<runtime configF...
Evenfall asked 18/5, 2009 at 11:35
4
Solved
Is there a utility that will encrypt a named configuration section (or just the connectionStrings section) in an app.config file in a similar manner that one can use aspnet_regiis with web.config f...
Maculation asked 27/4, 2011 at 11:19
1
We recently added a new application setting (not user setting) to the app.config (URL to a logging server) of our legacy winforms application (.Net 4.6.1).
Old version was 1.0.3, we changed the ve...
Fernald asked 7/3, 2018 at 20:23
3
Solved
I'm building a .NET component that will call an external web service. I used the "Add Service Reference" dialog to add the web service to my component, which generates the code needed to ...
Pinch asked 13/9, 2010 at 19:45
3
Solved
I configured my log4net to watch on changes made to the app.config file.
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
When I run my app and change things in the config file, these ch...
Await asked 19/10, 2011 at 12:37
© 2022 - 2024 — McMap. All rights reserved.