Did you actually try to run the code?
The Visual Studio / intellisense editor has the disadvantage that it complains about the configSource= attribute, but it IS absolutely legal, but it works ! I use it every day, in various production systems.
My recommendation: give it a try! Run the code - I'm sure it will work (your configs look good to me).
Update: OK - it looks like you are completely changing the style of the <example> . In the original app.config you have:
<example version="A sample string value." />
So, your externalized example.config should contain the same values ββand the same structure:
<?xml version="1.0"?> <example version="A sample string value." />
Can you try with this example.config ??
source share