title: Caching ChildActions using cache profiles won't work?
body: <p>I'm trying to use cache profiles for caching child actions in my mvc application, but I get an exception: Duration must be a positive number.</p>
  
  <p>My web.config looks like this:</p>
  
  <pre><code>&lt;caching&gt;
        &lt;outputCache enableOutputCache="true" /&gt;
        &lt;outputCacheSettings&gt;
          &lt;outputCacheProfiles&gt;
            &lt;add name="TopCategories" duration="3600" enabled="true" varyByParam="none" /&gt;
          &lt;/outputCacheProfiles&gt;
        &lt;/outputCacheSettings&gt;
  &lt;/caching&gt;
  </code></pre>
  
  <p>And my child action something like this:</p>
  
  <pre><code>[ChildActionOnly]
  [OutputCache(CacheProfile = "TopCategories")]
  //[OutputCache(Duration = 60)]
  public PartialViewResult TopCategories()
  {
      //...
      return PartialView();
  }
  </code></pre>
  
  <p>Inside a view I just call <code>@Html.RenderAction("TopCategories", "Category")</code></p>
  
  <p>But I get an error:
  Exception Details: System.InvalidOperationException: Duration must be a positive number.</p>
  
  <p>If I don't use cache profile it works. Have an idea what's the problem?</p>