title: C# Visual Studio 2010 - 'Could not load type' Parse error
body: <p><strong>Parser Error Message: Could not load type 'TestProject.Default'.</strong></p>
  
  <hr>
  
  <p><em>I have checked every other thread on this issue I can find. As yet, I have not found a solution that applies to my case.</em></p>
  
  <hr>
  
  <p><strong>Source Error:</strong></p>
  
  <pre><code>Line 1:  &lt;%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestProject.Default" %&gt;
  Line 2:  
  Line 3:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  
  Source File: /testarea/default.aspx    Line: 1
  </code></pre>
  
  <p><strong>Default.aspx.cs</strong></p>
  
  <pre><code>using System;
  using System.Web;
  using System.Web.UI;
  
  namespace TestProject
  {
      public partial class Default : System.Web.UI.Page
      {
  </code></pre>
  
  <p><strong>Relevant Notes</strong></p>
  
  <ul>
  <li>/testarea is the directory on the server where the uncompilable files
  are /testarea/bin contains the compiled files</li>
  <li>Project is compiled (using Build -> Build TestProject)</li>
  <li>Runs fine locally when debugging - problem only occurs when published
  to web</li>
  <li>I don't / can't publishmthrough VS (no front page extensions), so
  copy files across (from PackageTmp folder after using Build ->
  Publish -> File System)</li>
  <li>I put a previous project on the web using the same method with no
  issues.</li>
  <li>In all other threads and references to this issue, namespace
  inaccuracies, lack of having compiled the project, and project
  properties do not seem to apply in this case (I have checked numerous
  times and all appear correct)</li>
  <li>Output path in project properties is \bin, the same as the location
  on the server (/testarea/bin)</li>
  <li>Have tried 'Convert to Web Application' but issue existed before and
  after</li>
  <li>Have tried numerous Build -> Clean, and build again, Clean and then
  Publish. No change.</li>
  </ul>
  
  <p><strong>Side note</strong></p>
  
  <p>I'm a PHP developer, so these odd .NET / C# issues that are hard to trace and find the logic to are particularly difficult for me. Any advice re. how to properly debug a VS C# application would be appreciated.</p>
  
  <p>This is my first question here. If I can help make this easier with more info, just ask.</p>