CS0234 - Cannot Instantiate C# class in ASP.NET
<p>I made the same ASP.NET C# project in both VS2010 and MonoDevelop using these two classes among the standard files (<em>Site.Master</em>, <em>Web.Config</em>, <em>Default.aspx</em>, etc.) and recieve this same error (CS0234) seen at the bottom.</p>

<p>Login.cs:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using mynamespace;

namespace mynamespace
{
    public partial class Logon 
    {
        public void btnClicked(object sender, EventArgs e)
        {

            //ERROR IS HERE:
        mynamespace.Test session = new mynamespace.Test();

            //Obviously, this doesn't work either:
            Response.Write(session.echoUser());

        }
    }

}
</code></pre>

<p>Test.cs:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using mynamespace;

namespace mynamespace
{
    public class Test
    {
        public string echoUser()
        {
            return "foobar";
        }
    }
}
</code></pre>

<p>I recieve the same error in both IDEs, here is the MonoDevelop error:</p>

<blockquote>
  <p>The type or namespace 'Test' does not exist in the namespace 'mynamespace' (are you missing an assembly reference?) (CS0234) Logon.cs</p>
</blockquote>

<p>Basically, the class Test refuses to instantiate. Any input is appreciated!</p>
