This is clearly and comprehensively explained here:
https://msdn.microsoft.com/en-us/library/2tw134k3.aspx.
The problem is your question is that you show some XML fragment out of its context. We cannot see what you have really done. You have to show it starting from the
<configuration>
element, but you could shorten some irrelevant parts.
See also my comment to the question. If you mean something beyond read-only configuration, you have to use some other file, not standard config.
—SA