未将对象引用设置到对象的实例的错误 rotatoritem这个类是不是应该继承simplerotator先? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 它是两个不同的类啊,书上写的就是继承control 我想问下simplerotator编译过了吗? to zhlzl: “/web6”应用程序中的服务器错误。--------------------------------------------------------------------------------未将对象引用设置到对象的实例。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 行 4: <body>行 5: <form id="Form1" method="post" runat="server">行 6: <myctrl:simplerotator runat="server">行 7: <myctrl:rotatoritem runat="server" text="first" />行 8: <myctrl:rotatoritem runat="server" text="second" ID="Rotatoritem1"/> 源文件: c:\inetpub\wwwroot\web6\simplerotator.aspx 行: 6 堆栈跟踪: [NullReferenceException: 未将对象引用设置到对象的实例。] mycom.simplerotator.AddParsedSubObject(Object obj) +27 System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +4 ASP.simplerotator_aspx.__BuildControl__control2() in c:\inetpub\wwwroot\web6\simplerotator.aspx:6 ASP.simplerotator_aspx.__BuildControlForm1() in c:\inetpub\wwwroot\web6\simplerotator.aspx:5 ASP.simplerotator_aspx.__BuildControlTree(Control __ctrl) in c:\inetpub\wwwroot\web6\simplerotator.aspx:1 ASP.simplerotator_aspx.FrameworkInitialize() in c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\web6\fde21b82\4dad04a7\k1zuhpdt.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 ExtJs访问Sql数据库? asp ajax问题 留言板中关于从数据库将图片路径读到文本框并显示的问题。。。 图片上传的问题 ProcessBar的一个很头疼的问题 在DataGrid中更新上传时出错. 关于用.NET发送E-MAIL 问题 dataAdapter.TableMappings.Add("Table", "Orders") 有关在网页上显示曲线的问题 AspNetPager免费分页控件4.0发布,欢迎下载使用! 狂晕,大量文本射入orcale数据库问题· 把表单的字写入文本文件,怎么全是乱码
“/web6”应用程序中的服务器错误。
--------------------------------------------------------------------------------未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:
行 4: <body>
行 5: <form id="Form1" method="post" runat="server">
行 6: <myctrl:simplerotator runat="server">
行 7: <myctrl:rotatoritem runat="server" text="first" />
行 8: <myctrl:rotatoritem runat="server" text="second" ID="Rotatoritem1"/>
源文件: c:\inetpub\wwwroot\web6\simplerotator.aspx 行: 6 堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
mycom.simplerotator.AddParsedSubObject(Object obj) +27
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +4
ASP.simplerotator_aspx.__BuildControl__control2() in c:\inetpub\wwwroot\web6\simplerotator.aspx:6
ASP.simplerotator_aspx.__BuildControlForm1() in c:\inetpub\wwwroot\web6\simplerotator.aspx:5
ASP.simplerotator_aspx.__BuildControlTree(Control __ctrl) in c:\inetpub\wwwroot\web6\simplerotator.aspx:1
ASP.simplerotator_aspx.FrameworkInitialize() in c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\web6\fde21b82\4dad04a7\k1zuhpdt.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