title: ASPX can't seem to find my code behind files?
body: <p>For whatever reason my .aspx will only recognize the code behind when the Page directive is using CodeFile and not CodeBehind. Also, it gives a parser error on runtime. But I need CodeBehind to publish the site.</p>
  <ul>
  <li>Every other page in the web application uses CodeBehind.</li>
  <li>I've tried deleting and recreating the file, even leaving it empty, still an error.</li>
  <li>I've tried deleting the designer file and converting the .aspx to a web application.</li>
  <li>The page directive references (namespace, class) are correct.</li>
  <li>Tried deleting the obj.</li>
  <li>Tried cleaning and rebuilding.</li>
  </ul>
  <p>I'm out options here. Everything I've googled so far hasn't panned out. Why can't CodeBehind be used?!</p>
  <p>.aspx</p>
  <pre><code>&lt;%@ Page Title=&quot;&quot; Language=&quot;C#&quot; MasterPageFile=&quot;~/App/Masters/Default.Master&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;BlogPost.aspx.cs&quot; Inherits=&quot;WebApplication.App.Templates.BlogPost&quot; %&gt;
  </code></pre>
  <p>.aspx.cs</p>
  <pre><code>namespace WebApplication.App.Templates
  {
      public partial class BlogPost : BaseTemplate
      {
  </code></pre>