title: Could not find configuration node: settings/setting[@name='mediaFolder']/@value
body: <p>I upgraded sitecore from 7.1 to 7.2 and changed all the configurtion files as stated and getting error Could not find configuration node: settings/setting[@name='mediaFolder']/@value". But my webconfig has following values</p>
  
  <pre><code>&lt;setting name="MediaFolder" value="$(mediaFolder)" /&gt;
  &lt;sc.variable name="mediaFolder" value="/upload" /&gt;
   &lt;media&gt;
    &lt;folder ref="settings/setting[@name='mediaFolder']/@value"&gt;
    &lt;/folder&gt;
    &lt;filter&gt;*&lt;/filter&gt;
  &lt;/media&gt;
  
  The stacktrace
  </code></pre>
  
  <blockquote>
    <p>Could not find configuration node:
    settings/setting[@name='mediaFolder']/@value</p>
    
    <p>Description: An unhandled exception occurred during the execution of
    the current web request. Please review the stack trace for more
    information about the error and where it originated in the code. </p>
    
    <p>Exception Details: System.InvalidOperationException: Could not find
    configuration node: settings/setting[@name='mediaFolder']/@value</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of
    the exception can be identified using the exception stack trace below.</p>
  </blockquote>
  
  <p>Stack Trace: </p>
  
  <blockquote>
    <p>[InvalidOperationException: Could not find configuration node:
    settings/setting[@name='mediaFolder']/@value]<br>
    Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message)
    +70    Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String format, Object[] args) +82<br>
    Sitecore.Configuration.Factory.GetConfigNode(String xpath, Boolean
    assert) +281    Sitecore.Configuration.Factory.CreateObject(String
    configPath, String[] parameters, Boolean assert) +158<br>
    Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
    String[] parameters, Boolean assert) +203<br>
    Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
    String[] parameters, Boolean assert, IFactoryHelper helper) +161<br>
    Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
    String[] parameters, Boolean assert) +64<br>
    Sitecore.Configuration.Factory.CreateObject(String configPath,
    String[] parameters, Boolean assert) +461<br>
    Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean
    assert) +61    Sitecore.Configuration.Factory.GetString(String
    configPath, Boolean assert) +63<br>
    Sitecore.IO.FileWatcher..ctor(String configReference) +222<br>
    Sitecore.Resources.Media.UploadWatcher..ctor() +50</p>
    
    <p>[TargetInvocationException: Exception has been thrown by the target of
    an invocation.]    System.RuntimeTypeHandle.CreateInstance(RuntimeType
    type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,
    RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck) +0<br>
    System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
    skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark) +113<br>
    System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
    Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)
    +232    System.Activator.CreateInstance(Type type, Boolean nonPublic) +83    System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[]
    activationAttributes, StackCrawlMark&amp; stackMark) +1122<br>
    System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
    Binder binder, Object[] args, CultureInfo culture, Object[]
    activationAttributes) +128    System.Activator.CreateInstance(Type
    type, BindingFlags bindingAttr, Binder binder, Object[] args,
    CultureInfo culture) +18<br>
    System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[]
    args) +60<br>
    System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1
    moduleList) +189<br>
    System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
    appContext, HttpContext context, MethodInfo[] handlers) +82<br>
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
    MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172<br>
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
    appContext, HttpContext context) +336<br>
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
    appContext) +296</p>
    
    <p>[HttpException (0x80004005): Exception has been thrown by the target
    of an invocation.]<br>
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9948312 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
    +101    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context) +254</p>
  </blockquote>