编译器错误消息: CS0115: “ASP.index_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写源错误:行 491:        
行 492:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 493:        public override int GetTypeHashCode() {
行 494:            return 1251964433;
行 495:        }运行界面弹出::错误 17 “ASP.validate_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\itx\325bf22b\438cd93\App_Web__piygcyi.4.cs 536 错误 18 “ASP.validate_aspx.ProcessRequest(System.Web.HttpContext)”: 没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\itx\325bf22b\438cd93\App_Web__piygcyi.4.cs 541 错误 19 “ASP.validate_aspx”不会实现接口成员“System.Web.IHttpHandler.IsReusable” c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\itx\325bf22b\438cd93\App_Web__piygcyi.4.cs 131
.aspx源代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="userzc.user_register" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>i特星网_会员注册</title>
    <link href="itxdl.css" rel="stylesheet" type="text/css" />
    <script src="register.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return checkform();">
    <div style="width:600px; margin:auto; margin-top:100px; border:gray 1px solid; text-align:left; height:300px;">
    <div style="margin-top:20px; margin-left:30px"><div style="text-align:center; margin-left:-30px; font-size:15px; color:Red; font-weight:bolder;">用&nbsp;&nbsp;&nbsp;户&nbsp;&nbsp;&nbsp;注&nbsp;&nbsp;&nbsp;册</div>
    <hr class="register_hr" />
    帐<span style="margin-left:25px;">号</span>&nbsp;&nbsp;<input id="Text_User" name="Text_User" type="text" class="regerister_inputtext" maxlength="10" onchange="change('Text_User')" />&nbsp;&nbsp;&nbsp:&nbsp;<input id="Button2" type="button" value="检测" onclick="validate();" style="border:black 1px solid; height:20px;" />&nbsp;&nbsp;用户名必须在10个字符以内,支持非空格字符组合<br />
    <hr class="register_hr" />
    密<span style="margin-left:25px;">码</span>&nbsp;&nbsp;<input id="Text_Password1" name="Text_Password1" type="password" class="regerister_inputtext" maxlength="10" onchange="change('Text_Password1')" />&nbsp;&nbsp;&nbsp:&nbsp;长度为4-10的字符,支持非空格字符组合<br />
     <hr class="register_hr" />
    确认密码&nbsp;&nbsp;<input id="Text_Password2" name="Text_Password2" type="password" class="regerister_inputtext" maxlength="10" onchange="change('Text_Password2')" />&nbsp;&nbsp;&nbsp:&nbsp;请再输入一次密码<br />
    <hr class="register_hr" />
    邮<span style="margin-left:25px;">箱</span>&nbsp;&nbsp;<input id="Text_Mail" name="Text_Mail" type="text" class="regerister_inputtext" maxlength="50" onchange="change('Text_Mail')" />&nbsp;&nbsp;&nbsp:&nbsp;请填写您的有效EMAIL<br />
    <hr class="register_hr" />
    
    <div style="float:left; margin-top:-2px;">验<span style="margin-left:5px;">证</span><span style="margin-left:5px;">码</span>&nbsp;&nbsp;&nbsp;<input id="Text_Validate" name="Text_Validate" type="text" class="regerister_inputtext" maxlength="3" /></div>
    &nbsp;<img alt="点击刷新" src="../validate.aspx?time=' + Math.random();" style="cursor:pointer;" onclick="this.src='../validate.aspx?time=' + Math.random();" />
    
    
    <hr class="register_hr" />
    <input id="Checkbox2" type="checkbox" checked="checked" /><a href="../system/rule.htm" target="_blank">我已经阅读并同意《用户服务协议》</a><br />
    <div style="text-align:center; margin-left:-20px; margin-top:10px;"><input id="Button1" type="submit" value="立即注册" style="border:black 1px solid; height:20px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id="Button3" type="button" value="取消" style="width:50px; border:black 1px solid; height:20px;" onclick="javascript:location.href='../default.aspx'" /></div>
    </div>
    
    </div>
    </form>
</body>
</html>.cs 源代码::using System;
using System.Collections;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text.RegularExpressions;
using System.Web.Mail;
using System.Web.Util;namespace userzc
{
    public partial class user_register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //用户注册
            if (Request.Form["Text_User"] != null && Request.Form["Text_Password1"] != null && Request.Form["Text_Password2"] != null && Request.Form["Text_Mail"] != null && Request.Form["Text_Validate"] != null)
            {
                string username = Regex.Replace(Request.Form["Text_User"].ToString(), "\\s", "");
                string password1 = Regex.Replace(Request.Form["Text_Password1"].ToString(), "\\s", "");
                string password2 = Regex.Replace(Request.Form["Text_Password2"].ToString(), "\\s", "");
                string mail = Request.Form["Text_Mail"].ToString();
                string validate = Request.Form["Text_Validate"].ToString();
                if (Session.Contents["validate"] == null)
                {
                    Response.Write("<script language='javascript' type='text/javascript'>alert('" + Resources.Resource.Register1 + "');</script>");
                    return;
                }
                Md5Pw md5 = new Md5Pw();
                if (username.Length > 0 && username.Length < 11 && password1 == password2 && password1.Length > 3 && password1.Length < 11 && !Regex.IsMatch(mail, "\\s") && Regex.IsMatch(mail, "[^@]+@[^\\.]+\\..+") && validate == Session.Contents["validate"].ToString() && SqlStore.SqlUserRegister(username, md5.Md5(password1), mail))
                {
                    System.Web.HttpCookie newcookie = Response.Cookies["Qiezi"];
                    newcookie.Value = username;
                    newcookie.Expires = DateTime.Now.AddYears(1);
                    Response.AppendCookie(newcookie);
                    Session.Contents["username"] = username;
                    //Mail sendmail = new Mail();
                    //sendmail.Register(mail, username, password1);
                    Response.Write("<script language='javascript' type='text/javascript'>alert('" + Resources.Resource.Register2 + "');location.href='../default.aspx';</script>");
                }
                else
                    Response.Write("<script language='javascript' type='text/javascript'>alert('" + Resources.Resource.Register3 + "');</script>");
            }
        }    }
}