**Parser Error Message: Could not load type 'TestProject.Default'.**

---

*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.*

---

**Source Error:**

```
Line 1:  <%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestProject.Default" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Source File: /testarea/default.aspx    Line: 1

```

**Default.aspx.cs**

```
using System;
using System.Web;
using System.Web.UI;

namespace TestProject
{
    public partial class Default : System.Web.UI.Page
    {

```

**Relevant Notes**

* /testarea is the directory on the server where the uncompilable files
are /testarea/bin contains the compiled files
* Project is compiled (using Build -> Build TestProject)
* Runs fine locally when debugging - problem only occurs when published
to web
* I don't / can't publishmthrough VS (no front page extensions), so
copy files across (from PackageTmp folder after using Build ->
Publish -> File System)
* I put a previous project on the web using the same method with no
issues.
* 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)
* Output path in project properties is \bin, the same as the location
on the server (/testarea/bin)
* Have tried 'Convert to Web Application' but issue existed before and
after
* Have tried numerous Build -> Clean, and build again, Clean and then
Publish. No change.

**Side note**

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.

This is my first question here. If I can help make this easier with more info, just ask.