Server Error in '/' Application.

Operation must use an updateable query.

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: Operation must use an updateable query.

Source Error:


Line 57:         {
Line 58:             //浜烘皵
Line 59:             int result = juncy.DAL.DBHelperAccess.exeCute("update juncy_articles set hits=(hits+1) where id=" + id);
Line 60: 
Line 61:             bid = Convert.ToInt32(dt.Rows[0]["cb_id"].ToString());

Source File: d:\root\webFile\hbgpmjCom\web\articleDetails2.aspx.cs    Line: 59

Stack Trace:


[OleDbException (0x80004005): Operation must use an updateable query.]
   juncy.DAL.DBHelperAccess.exeCute(String strSql) in F:\wcjun\ing\h-鎭掗偊楂樺懆娉㈡ā鍏穃juncy_Project_v3H5\juncy.DAL\DBHelperAccess.cs:93
   articleDetails2.bind() in d:\root\webFile\hbgpmjCom\web\articleDetails2.aspx.cs:59
   articleDetails2.Page_Load(Object sender, EventArgs e) in d:\root\webFile\hbgpmjCom\web\articleDetails2.aspx.cs:35
   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.8762; ASP.NET Version:2.0.50727.8762