ASP.net

weixiao421 2012-04-06 03:33:27
ASP.default_aspx.FrameworkInitialize()”: 没有找到适合的方法来重写
ASP.default_aspx”不实现接口成员“System.Web.IHttpHandler.IsReusable”
ASP.default_aspx.ProcessRequest(System.Web.HttpContext)”: 没有找到适合的方法来重写
ASP.default_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写
这是什么错误啊!怎么改?
原文是using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);

protected void Page_Load(object sender, EventArgs e)
...全文
68 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
传递正能量 2012-04-06
  • 打赏
  • 举报
回复
1,看看类是不是和别的类重名,尤其是模型层等其他层的(搜索Default,你就有收获了)
2,看看页面的codebeb..属性指定的对不

绝对跑不出这两个问题
threenewbee 2012-04-06
  • 打赏
  • 举报
回复
程序是你写的么?最有可能的情况是源代码不全、VS版本不匹配。

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧