I have a web project (ASP.NET MVC 4 project) that has a number of configurations stored in Web.Config and in NLog.config files.
I have
The accepted answer did not work for me.
I wanted to have internal logging locally, but not on production. It turns out you need to include the namespace in the root configuration node.
What worked for me: web.config:
web.config.Release
>
Found the solution here: https://www.jayway.com/2011/11/14/web-config-transformations-and-xml-namespaces/