'/route' 應用程式中發生伺服器錯誤。

運作必須使用更新查詢。

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.Data.OleDb.OleDbException: 運作必須使用更新查詢。

原始程式錯誤:


行 18:             AccessDataSource1.UpdateParameters(3).DefaultValue = Now.ToShortDateString
行 19:             AccessDataSource1.UpdateParameters(4).DefaultValue = Request("repno")
行 20:             AccessDataSource1.Update()
行 21:             lnkReturn.NavigateUrl = "g1discuss.aspx?page=" & Request("Page")
行 22:             Page.MaintainScrollPositionOnPostBack = True

原始程式檔: C:\inetpub\wwwroot\Chukps\g1ingf06_3.aspx.vb    行: 20

堆疊追蹤:


[OleDbException (0x80004005): 運作必須使用更新查詢。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1007172
   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
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +386
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +325
   System.Web.UI.WebControls.SqlDataSource.Update() +20
   g1ingf06_3.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Chukps\g1ingf06_3.aspx.vb:20
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.9061; ASP.NET 版本:2.0.50727.9062