“/”应用程序中的服务器错误。

无法更新;当前被锁定。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: 无法更新;当前被锁定。

源错误:


行 24:     {
行 25:         // 在新会话启动时运行的代码
行 26:         ZJ.BM.SiteCounter.AddVisiter();
行 27:     }
行 28: 

源文件: d:\vhostroot\localuser\hbttjt001\www\global.asax    行: 26

堆栈跟踪:


[OleDbException (0x80004005): 无法更新;当前被锁定。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1229556
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +208
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +162
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +107
   ZJ.Core.AbstractData.Execute(IDbCommand[] commands) +174

[Exception: 无法更新;当前被锁定。Update [SiteCounter] set TotalVisiter=TotalVisiter+1 where datediff("d",now(),[Date])=0]
   ZJ.Core.AbstractData.Execute(IDbCommand[] commands) +316
   ZJ.Core.AbstractData.Execute(String commandText, Hashtable param) +63
   ZJ.Core.DataProvider`1.execute(String queryName, Hashtable param) +47
   ZJ.Basis.SiteCounter.AddVisiter() +45
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\vhostroot\localuser\hbttjt001\www\global.asax:26
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10067159
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +160
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1095
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +254
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3429.0