Server Error in '/' Application.

无法更新;当前被锁定。

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.Data.OleDb.OleDbException: 无法更新;当前被锁定。

Source Error:


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

Source File: d:\vhostroot\localuser\lianle025\www\global.asax    Line: 26

Stack Trace:


[OleDbException (0x80004005): 无法更新;当前被锁定。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1164152
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +189
   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\lianle025\www\global.asax:26
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +9770775
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +155
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1095
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36430