Reading web-service information from assembly app.config file
- by Benjamin Ortuzar
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.