All Questions
Tagged with app-config xml
119 questions
0
votes
1
answer
124
views
C# Windows Form: pragmatically edit/update an Array of strings in resulting App.Config file
I need to pragmatically update an auto generated app.config file of a Windows Form.
Specifically an ArrayOfStrings.
Desired out put:
<setting name="Test" serializeAs="Xml"&...
0
votes
0
answers
61
views
In visual Basic: AppConfig keeps giving a "System.NullReferenceException" (As simple a test as possible)
I want to save some of my programs variables to a config.file.
So, I try to use "AppConfig ", as that almost seems to be the standard.
Before trying anything complicated, I put it to the ...
1
vote
1
answer
111
views
How to insert an app.config section or change it if it is already there
I have the following simplified app.config file of a .NET 4.7 application:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<...
0
votes
1
answer
495
views
How to store XML elements in App.config file
I want to store a private key in an app.config file
here is a sample private key
<RSAKeyValue><Modulus>vht+dSDSL/4IOJ0i5k4FKLTl5hFqEU60AMP53QQNB1pG+...
1
vote
0
answers
2k
views
Activation Context Generation Failed error in manifest or policy .invalid xml syntax
I Have a windows application that uses another application to update its version files.
In my App , I saved the changed xml and Exe files in my database and every time the app runs , It downloads the ...
1
vote
0
answers
88
views
Why saving XML configuration file sometimes breaks long lines?
I use the following method to update appSettings in the config file:
void UpdateSetting(string key, string value)
{
Configuration configuration = ConfigurationManager.OpenExeConfiguration(...
0
votes
0
answers
251
views
Error from "Not-So-Special" Characters in .NET Windows Service .config file
TLDR; Some not-so-special characters in .config file prevent my .NET Windows Service from starting until after
removing the chars
starting the service
stopping the service
adding the chars back
...
0
votes
0
answers
137
views
Can you split up a connection string in app.config?
I am very new to app.config files:
In an app.config file which look like this
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<...
0
votes
1
answer
37
views
Problem calling a second .config for keys in C#
I need a second .config to manage alot of keys. I tried using
<configSections>
<section name="apiConnection" type="CustomConfig.apiConnectionSection, CustomConfig&...
1
vote
2
answers
5k
views
How to retrieve a custom section from an app.config in .NET?
I have a .NET Framework 4.7.2 library project, inside there's an App.config file like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<...
1
vote
0
answers
599
views
Add new configuration to App.config at runtime
I have a file (MyFile.dll.config) which is an XML code. I want to add that file's nodes to the current App.config at runtime. I want to read the XML file then check if the nodes exists and if not, add ...
1
vote
0
answers
242
views
java.lang.IncompatibleClassChangeError: Implementing class ClassPathXmlApplicationContext to ApplicationContext
I am trying to convert an xml file using ClassPathXmlApplicationContext to ApplicationContext and get a class change error every time.
ivy.xml:
<dependency org="cglib" name="cglib" ...
1
vote
1
answer
1k
views
Custom section in App.Config, ConfigurationManager stops working
I have created a console app in c# that reads information from App.config. if i add things in appSettings section, i can acces them and it works, but as soon as i add some custom sections i cant read ...
2
votes
1
answer
2k
views
How to add Gitlab custom variable in app.config xml file
I'm working on C# project using Gitlab CI and would like to hide secrets in app.config file.
I added one variable in Gitlab and in app.config like this:
<add key="User" value="username" />
<...
1
vote
1
answer
65
views
How to chage default directory of .dlls creating after built with runtime and probing?
I want to move all .dlls to "lib" folder after building my application. Default program creates them in directory:
bin\Debug\netcoreapp2.2
And this is directory where I want to place my .dlls:
...