Check OpenMappedExeConfiguration and ExeConfigurationFileMap .
This method allows you to open the named configuration file, rather than the default myapp.exe.config file.
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap(); configFileMap.ExeConfigFilename = "custom.config";
This will load any old configuration file. But looking at your question, I think your real problem is likely to be one of the links. Where is Configuration.RenderingSection defined? Is it included / indicated in your project? It should be.
If you are happy that Configuration.RenderingSection is defined, you may need to start looking for Assembly Resolvers .
Peteh source share