Questions tagged [configsource]
30 questions
2
votes
1 answer
How to use multiple locations for configSource in config file for WCF Client
Our application will act as client for different WCF-services in the future. At the moment we consume only one WCF-Service. Our config-file for the application is set up using configSource-attribues at the moment:
…

ManOnAMission
- 1,023
- 1
- 12
- 31
2
votes
2 answers
ConfigSource on Location element in Web.Config
Ok, so I am going through one of the company's websites and trying to clean up the web.config using the ConfigSource attribute on some elements.
One of the biggest areas of the web.config is a list of locations with authorization values for almost…

Esteban Martinez
- 84
- 10
1
vote
3 answers
Configuration settings only for development
Short
I want to set certain applicationSetting values to specific values only for my development machine in a config file that cannot be checked in. For this I was thinking to use the configSource attribute with a user.config file. This attribute,…

Boris Callens
- 90,659
- 85
- 207
- 305
1
vote
3 answers
Is there a way to have several hierarchies within the config file using configSource?
I wonder if there is a way or a workaround to have the config files in the following structure:
App.Config
and my…

Etchin
- 135
- 1
- 2
- 8
1
vote
0 answers
Replace Connection String with Web.Release.config using external configSource
I'm trying to move all of our connection strings to external files but I can't get our production app to run - when publishing we receive an Error that says:
**
Web.config Connection String argument cannot be null or empty.
**
I wonder if the…

Jon Freynik
- 359
- 2
- 15
1
vote
1 answer
Is it possible to use the configSource attributes on Custom ConfigurationElement classes in web.config?
I know it's possible to reference external configuration files for a configuration section but I'd like to go one step further and reference config files from a configuration element.
i.e.
user209539
1
vote
2 answers
How to tell dictionaryAdapter to watch for changes from ConfigurationManager.AppSettings?
I use DictionaryAdapter to retrieve settings from appSettings section of my asp.net website.
The IoC configuration is done once, at the startup time and all kinds of different interfaces with getters are being registered with using single…

Łukasz Podolak
- 958
- 3
- 12
- 24
0
votes
1 answer
Do we need separate config file for every section of web.config file that uses configSource attribute?
I want to keep some portions of the web.config file out of web.config file. So I am using the configSource attribute and referring to some other file. When I add more than one configurations in the file other than web.config, VS 2010 shows the red…

Learner
- 4,661
- 9
- 56
- 102
0
votes
0 answers
Quarkus InMemoryConfigSource
I want to hide my db credentials written in application.properties and I found the solution using InMemoryConfigSource I then implemented InMemoryConfigSource and remove my datasource credentials in application.properties. Even I selected local…

oural.keser
- 1
- 1
0
votes
1 answer
Using custom config source with quarkus seems to be not working
I have a maven multi module project using quarkus. The architecturecan be simplified like this:
**module1 **-> configuration file such as…

okyn29
- 11
- 4
0
votes
0 answers
Using configSource attribute in Web.config to refer to another file, then using configSource attribute again
Our web.config has this section:
Our connections.config looks (something) like this:

bornfromanegg
- 2,826
- 5
- 24
- 40
0
votes
1 answer
Put EntityFramework Settings to another config file
I want to divide my web.config ,Some sections can be divided with use configSource attribute like httphandler or appsettings.I want to also separate entity framework settings to different config.file.Is this possible?

Bilgehan
- 1,135
- 1
- 14
- 41
0
votes
1 answer
Use a dynamically generated file as configSource in web.config
Is there a way to use a generated file as a configSource for a web.config section?
In web.config, I tried a simple:
where webpartsConfig.aspx just spits out XML when accessed normally, but not as a…

Protector one
- 6,926
- 5
- 62
- 86
0
votes
1 answer
How to have a common ConfigSource file for ConfigSections and connectionStrings?
My project has 2 different config sections(one technical & one functional) and some connection Strings.
I would like to have in a same configSource file, the technical config section & the connection strings & in an other one the functional…

Mercure
- 13
- 5
0
votes
1 answer
configsource and installer
I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Config\loggingconfiguration.config.
I have a Installer Project for this csproj. But when I generate…
alhambra eidos kiquenet