Questions tagged [custom-configuration]

75 questions
0
votes
1 answer

Is there a way to import a custom configuration section?

I would like to know if there is a way to make several custom configuration sections in subprojects to append to each other? For example, consider the project structure: Solution\ MainGUI\ App.config Settings\ …
Nap
  • 8,096
  • 13
  • 74
  • 117
0
votes
1 answer

Implicit ConfigurationElementCollection sections

The System.Configuration connection string configuration classes define: ConnectionStringsSection : ConfigurationSection ConnectionStringSettingsCollection : ConfigurationElementCollection ConnectionStringSettings : ConfigurationElement But the…
fearofawhackplanet
  • 52,166
  • 53
  • 160
  • 253
0
votes
1 answer

Can DB schema objects(like tables, SP, Function or views) be excluded from DACPAC through custom configuration?

Currently our project has one common DACPAC, due to this, when any new projects are being developed, the SQL components are deployed much before the actual release of the project. Basically DACPAC usually deploys whole Data Base. I need to see if…
0
votes
0 answers

LogSettings in custom configuration provider (inMemoryDatabase) not working

I have used an inmemory database as configurationprovider. I have added the table with id, key and value column and assigned them values in Load function of ConfigurationProvider. public override void Load() { this.Data = new…
Saurav
  • 592
  • 4
  • 21
0
votes
3 answers

Add custom configuration Element at runtime

Is it possible to add an custom configuration element at runtime. Here is my app.config file
Naveen Chakravarthy
  • 819
  • 2
  • 15
  • 30
0
votes
0 answers

Custom configuration files are not resolved by Intellij Spring Framework

Custom configuration files in seperate module are not resolved by Intellij and that prevents application to run via Spring run and makes all properties grayed out and not referenced. But after I run it via Maven once, then Spring run works for some…
0
votes
0 answers

How can we get all of the indexes values inside the $config variable from a specific custom config file?

I have created a config file named email.php inside application/config folder. Now I want to assign my variable $email_config to all the indexes of the $config variable inside my email.php config file. I have tried to use $email_config =…
0
votes
1 answer

Custom configuration section and app.config

I have some incoming XML documents, I need to check attributes that are configurable in this coming XML and if the attribute is not there in the XML document being checked add it. The attributes to be checked will be specified in the app.config…
RS developer
  • 187
  • 1
  • 5
  • 15
0
votes
0 answers

IOptions and Configuration controller always returns null for json file that needs to bind to a strongly-typed class

I have a class like this: public class GameSettingOptions { public const string GameSettings = "GameSettings"; public int gameId { get; set; } public string iconSize { get; set; } public int sortOrder { get; set; } public…
0
votes
0 answers

Null reference error for Action OptionsAction

I am trying to move my configuration values from my appsettings.json file into my SQL Server database. I have tried both this and this link but I am still getting a null reference error when it runs for OptionsAction either way. Please assist in…
0
votes
1 answer

ASP.NET MVC Custom configuration GetSection returns null

I'm working on an inherited ASP.NET MVC 4 project using .net framework 4.5. We've added a new configuration section files and relevant class files and from what we can tell (docs.Microsoft and other online guides) it's set up correctly. The…
Jag
  • 723
  • 8
  • 21
0
votes
1 answer

Serializing custom configuration

I need some help on implementing a way to serialize a custom configuration. I started with the content of following example: Polymorphic custom configuration section Reading the configuration works fine as expected but I can't save modifications of…
Stoffelchen
  • 95
  • 2
  • 2
  • 6
0
votes
1 answer

Elastix Custom Configuration files

I am new in Asterisk and using Elastix 2.5 to create two queues with 2 static members per queue in a lab environment. I want to set the value of 'setqueuevar' to yes. To do that I have changed the queue_custom.conf file and set this value to yes;…
T.Sh
  • 390
  • 2
  • 16
0
votes
1 answer

Accessing Custom Configurations in NUnit class

I'm really banging my head onto this one. I can't make the Custom Configuration to work with NUnit. It kept on failing to read the configuration file. I'm currently making a logging class. I followed carefully this article:…
Martin Ongtangco
  • 22,657
  • 16
  • 58
  • 84
0
votes
1 answer

Problem with Custom Configuration Settings

I added a custom section to my app.config file for a Windows Forms Application. I created the class to extend the configuration file: CustomFields myCustomFields =…
Damien
  • 13,927
  • 14
  • 55
  • 88