求高手解决——好麻烦的错误 Server Error in '/' Application.

kira30 2008-07-07 01:05:03
Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Data.OleDb.OleDbConnection.ValidateTransaction(OleDbTransaction transaction, String method) +16
System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +37
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +51
System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +111
System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +4
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
AccessDB.adb.GetDataTable(String sql) +122
NewsNet.AccessDAL.NewsCategory.GetChildList(Int32 ParentID) +81
NewsNet.BLL.NewsCategory.GetChildList(Int32 pid) +39
NewsNet.Web.NewsWeb.List.Page_Load(Object sender, EventArgs e) +208
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832




以上是页面上出现的错误信息,
比较郁闷的是这个错误不是每次都出现,而是要刷新好多次才可能出现的,
现在在网上服务器那里,本机还没测试过。

各位说下出现这个错误可能的情况,谢谢。
...全文
247 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
kira30 2008-07-07
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 chengqscjh 的回复:]
Server Error in '/' Application
这种问题一般是路径问题

Object reference not set to an instance of an object.
---------------------------------------------------
对象未实例化
[/Quote]


但是這種問題不是每次都出現,而是不停刷新頁麵才可能出現這個問題
chengqscjh 2008-07-07
  • 打赏
  • 举报
回复
Server Error in '/' Application
这种问题一般是路径问题

Object reference not set to an instance of an object.
---------------------------------------------------
对象未实例化
amandag 2008-07-07
  • 打赏
  • 举报
回复
System.NullReferenceException:
==
空引用异常,有对象没实例化
amandag 2008-07-07
  • 打赏
  • 举报
回复
System.NullReferenceException:
==
空引用异常,有对象没实例化
sytu_hzj 2008-07-07
  • 打赏
  • 举报
回复
基本不懂,学习中
kangfu01 2008-07-07
  • 打赏
  • 举报
回复
我有的时候是因为URL转参或控件有空值时会出现
你下面这个错误好像是向数据库传参时有空值吧

110,023

社区成员

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

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

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