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 315:    {
Line 316:        this.cmd = new OleDbCommand("update [dt_Anli] set [click]=[click]+1  where [ID]=" + base.Request.QueryString["PID"], this.conn);
Line 317:        this.cmd.ExecuteNonQuery();
Line 318:    }
Line 319:

Source File: f:\www\web\manuvege.com_hFlaB7okP9BXXLrBav8H\wwwroot\Aspx\kc1detail.aspx.cs    Line: 317

Stack Trace:


[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1003664
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +255
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +188
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +161
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
   web_kc1detail.updatenews() in f:\www\web\manuvege.com_hFlaB7okP9BXXLrBav8H\wwwroot\Aspx\kc1detail.aspx.cs:317
   web_kc1detail.Page_Load(Object sender, EventArgs e) in f:\www\web\manuvege.com_hFlaB7okP9BXXLrBav8H\wwwroot\Aspx\kc1detail.aspx.cs:131
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668