0
在ASP.NET服務器上使用ASP.NET作爲編程語言。 數據庫是訪問,我使用ODBC連接到數據庫。ASP.NET:accessdb odbc - 獲取異常時,如何查看完整的堆棧跟蹤?
當我填寫某種形式的網站,然後按提交我得到一個異常:
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.
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
和堆棧跟蹤是:
site.modGlobal.ExecuteSQL(String sqlStr, OdbcConnection& dbcon) +128
site.orderprd.imgbtnNextOrder_Click(Object sender, ImageClickEventArgs e) +3951
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
這不是一個網站,我寫的,所以我不能猜猜查詢的執行位置。 如何獲得更完整的堆棧跟蹤以查明執行此命令的位置?
看起來好像查詢是在'site.modGlobal.ExecuteSQL'中執行的,'site.orderprd.imgbtnNextOrder_Click'調用了'site.orderprod.imgbtnNextOrder_Click',它響應被點擊的'ImageButton'被調用。還需要什麼? – David 2010-09-14 13:09:15
+1給大衛。錯誤似乎表明錯誤來自這個modGlobal類的ExecuteSQL方法,例如modGlobal.ExecuteSQL(String sqlStr,OdbcConnection和dbcon) - 可能是因爲此方法直接調用數據庫來執行SQL,因此它是最深的鏈接流量? – InSane 2010-09-14 13:11:36