Reading web-service information from assembly app.config file
Posted
by Benjamin Ortuzar
on Stack Overflow
See other posts from Stack Overflow
or by Benjamin Ortuzar
Published on 2010-04-20T10:27:20Z
Indexed on
2010/04/20
10:33 UTC
Read the original article
Hit count: 247
I have a plugin architecture solution written in .NET C# 3.5, where each plug-in is an assembly loaded by the main project.
Each plug-in connects to a different web-service, so I would like to have the configuration of that plugin in its own plugin.dll.config file instead of having it in the app.config of the main project.
I have been looking around and I saw that i could load from each class its own config file:
// Get the application configuration file.
System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap,userLevel)
I see how that would help me get the basic settings from the appSettings section, but I cant see a way to read the web-service information stored in the plugin.dll.config file.
Any help on how to approach this situation is very welcome.
© Stack Overflow or respective owner