title: no suitable method found to override error on Asp.net
body: <p>I am new to asp.net. I wrote one page of asp.net, but when I run it, I get the following errors.</p>
  <pre><code> public partial class Issueofbook: System.Web.UI.Page
   {
  public Int64 Sid;
  protected void Page_Load(object sender, EventArgs e)
  {
      string Id;
      Id = Request.QueryString.Get(0);
  
      if (!(IsPostBack == true))
      {
          if (Request.QueryString.Get(1) == &quot;G&quot;)
          {
              Sid = Convert.ToInt64(Id);
              if (PopulatedRecord (Sid ) == false)
              {
  
              }
          }
       }
   }
   private Boolean PopulatedRecord(Int64 Id)
     {
      DataSet DS;
      DS = new DataSet();
      SqlCommand cmd = new SqlCommand();
      SqlDataAdapter da = new SqlDataAdapter();
      SqlConnection Cnn = new SqlConnection();
      string connectionstring;
      connectionstring = @&quot;Datasource=DEVI\SQLEXPRESS;Intial catalog=librarymanagement;Integrated Security=SSPI&quot;;
      Cnn.ConnectionString = connectionstring;
      if (Cnn.State != ConnectionState.Open)
          Cnn.Open();
      cmd.Connection = Cnn;
      cmd.CommandType = CommandType.StoredProcedure;
      cmd.CommandText = &quot;usbinsertdatainto&quot;;
      cmd.Parameters.Clear();
      cmd.Parameters.AddWithValue(&quot;@bookno&quot;, &quot;no&quot;);
      Adp.SelectCommand = Cmd;
      try
      {
          Adp.Fill(Ds);
      }
      catch (Exception ex)
      {
          throw new ApplicationException(
              &quot;!!! An Error Occured While Update Record In Dtl_SecurityCapital_Upload.&quot; + ex.Message);
          lblError.Visible = true;
          lblError.Text = &quot;!!! An Error Occured While &quot; + ex.Message.ToString();
          return false;
      }
      if (DS.Tables[0].Rows.Count &gt; 0)
      {
          txtno.Text = DS.Tables[0].Rows[0][&quot;bookno&quot;].ToString();
          txtstuno.Text = DS.Tables[0].Rows[0][&quot;studentno&quot;].ToString();
          RadioButton1.Text = DS.Tables[0].Rows[0][&quot;currentnoofcopiesavaillable&quot;].ToString();
          RadioButton2.Text = DS.Tables[0].Rows[0][&quot;currentnoofcopiesavaillable&quot;].ToString();
          txtdate.Text = DS.Tables[0].Rows[0][&quot;IssueDate&quot;].ToString();
          txtddate.Text = DS.Tables[0].Rows[0][&quot;Duedate&quot;].ToString();
      }
      cmd.Dispose();
      Cnn.Close();
      Cnn.Dispose();
      return true;
  }
  
  protected void Button2_Click(object sender, EventArgs e)
  {
      SqlConnection Cnn = new SqlConnection();
      string constr = null;
      SqlCommand cmd = new SqlCommand();
      constr = @&quot;Data Source=DEVI\SQLEXPRESS; Initial Catalog =librarymanagement; Integrated Security=SSPI&quot;;
      Cnn.ConnectionString =constr;
      try
      {
          if (Cnn.State != ConnectionState.Open)
              Cnn.Open();
      }
      catch (Exception ex)
      {
          string str1 = null;
          str1 = ex.ToString();
      }
      cmd.Connection = Cnn;
      cmd.CommandType = CommandType.StoredProcedure;
      cmd.CommandText = &quot;uspInsertbookDatainto&quot;;
      cmd.Parameters.Clear();
      cmd.Parameters.AddWithValue(&quot;@bookno&quot;, txtno.Text);
      cmd.Parameters.AddWithValue(&quot;@studentno&quot;, txtstuno.Text);
      cmd.Parameters.AddWithValue(&quot;@Issuedate&quot;, txtdate.Text);
      cmd.Parameters.AddWithValue(&quot;@Duedate&quot;, txtddate.Text);
      if (RadioButton1.Checked==true)
      {
          cmd.Parameters.AddWithValue(&quot;@currentnoofcopiesavaillable&quot;, RadioButton1.Text);
      }
      if (RadioButton2.Checked == true)
      {
          cmd.Parameters.AddWithValue(&quot;@currentnoofcopiesavaillable&quot;, RadioButton2.Text);
      }
      try
      {
          cmd.ExecuteNonquery();
      }
      catch (Exception ex)
      {
          throw new ApplicationException(&quot;!!! An error an occured while Insert Record Dtl_SecurityCapital_Upload.&quot; + ex.Message);
          lblerror.Visible = true;
          lblerror.Text = &quot;!!! An Error occured while .&quot; + ex.Message.ToString();
      }
  
      finally
      {
          cmd.Dispose();
      }
      Cnn.Close();
      lblError.Text = &quot;New Issue of record suceessfully!!&quot;;
      txtno.Text = &quot;&quot;;
      txtstuno.Text = &quot;&quot;;
      txtdate.Text = &quot;&quot;;
      txtddate.Text = &quot;&quot;;
  }
  }
  </code></pre>
  <h2>Description:</h2>
  <p>An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.</p>
  <h2>Compiler Error Message:</h2>
  <pre><code>CS0115: 'ASP.issue_of_book_aspx.GetTypeHashCode()': no suitable method found to override
  </code></pre>
  <h2>Source Error:</h2>
  <pre><code>Line 1253:        
  Line 1254:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
  Line 1255:        public override int GetTypeHashCode() {
  Line 1256:            return -853658727;
  Line 1257:        }
  </code></pre>
  <p>Will anyone will guide me? Thank you.</p>