求高手解决——好麻烦的错误 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
以上是页面上出现的错误信息,
比较郁闷的是这个错误不是每次都出现,而是要刷新好多次才可能出现的,
现在在网上服务器那里,本机还没测试过。
各位说下出现这个错误可能的情况,谢谢。
相关推荐
iis错误Server Application Error的解决方法
iis错误Server Application Error的解决方法 我在用pb11.5做web发布过程中遇到这类错误,使用了这个修复工具搞定了,比较不错!
微服务网关500错误排查:从Spring Cloud Gateway配置到容器化部署的实战解析
在微服务架构中,API网关作为请求的统一入口,其稳定性直接影响整个系统的可用性。Spring Cloud Gateway作为流行的网关解决方案,通过路由、过滤等机制实现请求转发与治理。然而,不当的配置可能导致严重的服务器端错误,例如常见的500 Internal Server Error。这类错误往往源于网关路由配置缺失、Actuator监控端点冲突或下游服务异常,在容器化部署环境下尤为复杂。本文结合**Docker**与**Gateway**等热词,深入剖析一次典型的登录接口500报错案例,从日志分析、配
“/”应用程序中的服务器错误和Server Error in ''/'' Application.的终极解决方法
“/”应用程序中的服务器错误。 运行时错误 说明: 服务器上出现应用程序错误。
IIS 错误 Server Application Error 详细解决方法
IIS 错误 Server Application Error 详细解决方法
“/”应用程序中的服务器错误和Server Error in ”/” Application.的终极解决方法
“/”应用程序中的服务器错误。 运行时错误 说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。 详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。 <!– Web.Config 配置文件 –><configuration> <system>


