title: General Errors with ASP.NET and C#
body: <p>I am new to stackoverflow and am needing help. </p>
  
  <p>Last night I was working on an ASP.NET webpage using C# [I'm all very new to it] and after losing a lot of my progress after a flash drive failure, I had to rewrite from a backup I stored on google drive. After putting it onto my computer, I received problems with one of my webpages. At first it did not recognize objects "existing in the current context" but I rewrote the page from hand, because I thought it was some trouble caused by copy-pasting things back. Now I get these errors:</p>
  
  <ol>
  <li>Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends t he correct base class (e.g. Page or UserControl).</li>
  <li>'ASP.index_aspx.GetTypeHashCode();: no suitable method found to override</li>
  <li>'ASP.index_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override</li>
  <li>'ASP.index_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable'</li>
  </ol>
  
  <p>I did not have these problems at all when working with the version that I lost. Here is my code:</p>
  
  <p>This is my "upload.aspx" page</p>
  
  <pre><code> &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %&gt;
  
   &lt;!DOCTYPE html&gt;
  
   &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
   &lt;head runat="server"&gt;
       &lt;title&gt;BSHUpload&lt;/title&gt;
   &lt;link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css"/&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;!-- Menu --&gt;
   &lt;div class="pure-menu pure-menu-open pure-menu-horizontal"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="pure-menu-selected"&gt;&lt;a href="#"&gt;Upload&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="requests.aspx"&gt;Requests&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
   &lt;/div&gt;
  &lt;!-- Server-side Upload --&gt;
      &lt;form id="form1" runat="server" style="padding-left: 2em"&gt;
      &lt;div&gt;
      &lt;h1&gt;Upload a File&lt;/h1&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;asp:Label ID="lblStatus1" runat="server" Text="---"&gt;&lt;/asp:Label&gt;
          &lt;asp:FileUpload ID="fdFileDrop1" runat="server" /&gt;
          &lt;asp:Button ID="btnFileDrop1" runat="server" Text="upload" OnClick="btnFileDrop1_Click" /&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And my code behind: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class upload : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
      protected void btnFileDrop1_Click(object sender, EventArgs e)
      {
          string strSavePath1 = "C:\\UploadBin\\";
  
      if (fdFileDrop1.HasFile)
      {
  
          string strFileName = fdFileDrop1.FileName;
  
              strSavePath1 += strFileName;
              fdFileDrop1.SaveAs(strSavePath1);
  
              lblStatus1.Text = "Your file was saved as " + strFileName;
  
      }
      else
      {
          lblStatus1.Text = "You did not specify a file to upload";
      }
  }
   }
  </code></pre>
  
  <p>And because I think the bottom 3 errors are for the "index.aspx" page here is that also:</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="index" %&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;BSHUpload&lt;/title&gt;
  &lt;link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css"/&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body style="height: 228px"&gt;
  &lt;!-- Menu --&gt;
      &lt;div class="pure-menu pure-menu-open pure-menu-horizontal"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="pure-menu-selected"&gt;&lt;a href="upload.aspx"&gt;Upload&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="requests.aspx"&gt;Requests&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;/div&gt;
  
      &lt;form id="form1" runat="server" style="padding-left: 2em"&gt;
  
      &lt;/form&gt;
  &lt;div&gt;
      &lt;button id="button1"&gt;Testing&lt;/button&gt;
          &lt;p id="toggle1"&gt;
          Wala
          &lt;/p&gt;
      &lt;script&gt;
          $( "#button1" ).click(function() {
              $( "#toggle1" ).slideToggle( "slow" );
          })
      &lt;/script&gt;
  &lt;/div&gt;
  &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Code Behind for index.aspx: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  public partial class index: System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  }
  </code></pre>
  
  <p>I really hope you guys can help because I'm stumped here. I'm pretty sure that both the inherits and the "System.Web.UI.Page" is correct but it says it is not. </p>