title: RenderSection() inside partial with master page
body: <p>I have a partial "Sidebar" added to the master page (Layout) and inside this partial I'm using: </p>
  
  <pre><code>@RenderSection("SearchList", required: false)
  </code></pre>
  
  <p>On one of the views that uses the master page I'm doing:</p>
  
  <pre><code>@section SearchList {
      // bunch of html
  }
  </code></pre>
  
  <p>but it's giving me the error:</p>
  
  <blockquote>
    <p>The file "~/Views/Shared/_SideBar.cshtml" cannot be requested directly because it calls the "IsSectionDefined" method.</p>
  </blockquote>
  
  <p>What's wrong here?</p>