Questions tagged [configurationsection]

Represents a section within a configuration file.

122 questions
0
votes
1 answer

Configuration Section Settings Not Initializing

I've spent several hours trying to determine what's causing my custom configuration section to fail, but I can't seem to find the root of the issue. I'm getting an error: An exception of type 'System.Configuration.ConfigurationErrorsException'…
0
votes
0 answers

Cant get configuration section from app.config

I want load int value that is stored in configuration section in app.Config. This is my app.Config file:
lehkap
  • 56
  • 8
0
votes
1 answer

ivy configurations - how to manage test utilities?

I'll present a simplified version of our problem, but know that we have way more than 2 projects, and so on. So, at our job, we have 2 projects - A B where B depends on A through ivy. Recently we added configurations to the mix, mainly default…
orirab
  • 2,915
  • 1
  • 24
  • 48
0
votes
1 answer

Autofac Configuration - How do I convert Code Section to Autofac Config

I am building Autofac Container as below _container = ConfigureContainer(new ContainerBuilder()).Build(); I have ConfigureContainer method to build/configure Autofac ContainerBuilder as below private static ContainerBuilder…
GDroid
  • 1,254
  • 1
  • 16
  • 36
0
votes
2 answers

Weird error while accessing an element in a ConfigurationElementCollection

I have a ConfigurationSection with a ConfigurationElementCollection like below:
0
votes
1 answer

c# ConfigurationSection not returning duplicate names

I have a configuration section reading from a config file. The xml looks like this
jAC
  • 3,155
  • 3
  • 18
  • 29
0
votes
1 answer
0
votes
2 answers

Issue with a DLL reading a ConfigurationSection when called through Service Reference

I have a project (A) referencing a Service (B) via. a Service Reference. That Service (B) has a reference to a DLL (lets call it Business.dll) That DLL has it's own accommodating app.config which has some configuration that I would assume would be…
Mani5556
  • 394
  • 2
  • 12
  • 33
0
votes
2 answers

ConfigurationSection - Custom Section is undefined - Why?

I'm trying to build a custom configuration and with some reason, I can't get it work. I'll appreciate if anyone can see where my problem is. Here is the code: public class PointServices : ConfigurationSection { public static…
Or A
  • 1,789
  • 5
  • 29
  • 55
0
votes
1 answer

Must type be fully qualified in section element of .NET config?

Microsoft's documentation on the type attribute of section element of the .NET configuration file says: type="Fully qualified class name, assembly file name, version, culture, public key token" which is what's usually called the assembly-qualified…
HansA
  • 1,375
  • 2
  • 11
  • 19
0
votes
1 answer

App-config , custom section handler object returning as null

So I made a custom section handler to read information from the app-config file but when I try run it i get the following error: Object reference not set to an instance of an object. I have been trying to fix this problem for two days now with no…
0
votes
1 answer

ConfigurationErrorsException in a console app

The entry 'MyCustomElement' has already been added. C:\Projects\Sandbox\Sandbox.Console\bin\Debug\Sandbox.Console.vshost.exe.config line 52 I'm a bit stumped on this one. This console app has had quite a few custom config sections added over the…
0
votes
1 answer

How to programmatically add domain service end point to web.config

I am in need of help with manipulating the web.config of a site programmatically via C#. The site in question hosts a Silverlight 5 application which communicates with the server runtime via WCF RIA services. The code that I am writing is part of a…
0
votes
1 answer

Spring Context Configuration

I have created a spring MVC application. I'm working on spring security concepts. So I've created a context configuration file name webbsite-security.xml and I've given the same file location in the context configuration path. The application fails…
vvekselva
  • 803
  • 3
  • 17
  • 34
0
votes
1 answer

Saving Configuration Section Error - Elements are merged as attributes

I have created a configuration section designer project to represent nodes of a custom section necessary to read and save from my web application. I am able to successfully create instances of the configuration elements and collections, however…
Jakkwylde
  • 1,304
  • 9
  • 16
1 2 3
8
9