异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 1: <%@ Page language="c#" Codebehind="MakeKingHome.aspx.cs" AutoEventWireup="false" Inherits="MakeKing.WebForm1" %>
行 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
行 3: <HTML>
源文件: f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx 行: 1 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
System.Web.UI.Control.get_Controls() +0
System.Web.UI.Control.AddParsedSubObject(Object obj) +29
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +4
ASP.MakeKingHome_aspx.__BuildControlTree(Control __ctrl) in f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx:1
ASP.MakeKingHome_aspx.FrameworkInitialize() in f:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\makeking\366cccc8\aa061802\nrr_mk2o.0.cs:0
System.Web.UI.Page.ProcessRequest() +84
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
行 1: <%@ Page language="c#" Codebehind="MakeKingHome.aspx.cs" AutoEventWireup="false" Inherits="MakeKing.WebForm1" %>
行 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
行 3: <HTML>
源文件: f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx 行: 1 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
System.Web.UI.Control.get_Controls() +0
System.Web.UI.Control.AddParsedSubObject(Object obj) +29
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +4
ASP.MakeKingHome_aspx.__BuildControlTree(Control __ctrl) in f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx:1
ASP.MakeKingHome_aspx.FrameworkInitialize() in f:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\makeking\366cccc8\aa061802\nrr_mk2o.0.cs:0
System.Web.UI.Page.ProcessRequest() +84
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
解决方案 »
- windows 2008 Standard Server /visual studio 2008/Crystal Report 2008兼容性问题
- DataTable与List<T>的转换
- 求介绍几本ASP.NET的入门书籍!
- 控件点击时不可用
- 这种ID是怎么得到的SubModuleID=D26624CB2C0B1FF3
- GidView连续插入多条记录的问题
- 即使使用了JavaScript,但不知怎么打开一个链接
- 动态生成Label保值问题
- 在数据访问层(DAL)为每个表都写类,包含任意查询、更新、新增、删除等等方法,工作量大。征求好的解决方案!
- dropdownlist selectedindexchanged 在ie10下无反应
- 菜鸟问题:求一查询语句???
- 我帮忙问问这水平在北京能拿多少月薪?
Codebehind="MakeKingHome.aspx.cs" AutoEventWireup="false" Inherits="MakeKing.WebForm1"
看现在这一句,看看Codebehind后面的值与Inherits后面的值,两者之间是有关联的.
Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="aqjc.tmp.WebForm1"改为:
Codebehind="MakeKingHome.aspx.cs" AutoEventWireup="false" Inherits="MakeKing.MakeKingHome"