The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?)
<p>Using VS2012 , asp/c#</p>

<ul>
<li>Created New Website empty project</li>
<li>created new asp file</li>
<li><p>created new c# class file, dialog comes up saying I need to have this class in App_Code folder, I said yes ok.</p>

<pre><code>Website
  Default.aspx
    Default.aspx.cs
App_Code
  Class1.cs
</code></pre></li>
</ul>

<p>My default.aspx.cs file calls (creates instance) Class1.cs. Below error happens when I put this website in remote server. my localhost server website is coming up.</p>

<p>Compiler Error Message: CS0246: The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?)</p>

<p>Source Error:</p>

<pre><code>Line 11: protected void Page_Load(object sender, EventArgs e)
Line 12:     { 
Line 13:         Class1 cls = new Class1(); 
Line 14:         cls.getValue(); 
Line 15:     }
</code></pre>
