ASP.NET:accessdb odbc - 出现异常时,如何查看完整的堆栈跟踪?

发布于 2024-09-18 17:01:55 字数 1302 浏览 3 评论 0原文

在 IIS 服务器上使用 ASP.NET 作为编程语言。 数据库是访问的,我使用 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

这不是我编写的网站,所以我无法猜测查询是在哪里执行的。 我怎样才能获得更完整的堆栈跟踪,以便查明此命令的执行位置?

Using ASP.NET as programming language on IIS Server.
the Database is access and i connect to the database using ODBC.

when i fill some form in the website and press submit i get an exception:

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.

and stack trace is:

  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

this is not a website that i wrote so i cannot guess where the query was executed.
how can i get a more complete stack trace in order to pinpoint the location this command was executed ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬花如无物 2024-09-25 17:01:55

堆栈跟踪看起来非常明确:

site.modGlobal.ExecuteSQL(String sqlStr, OdbcConnection& dbcon) +128
site.orderprd.imgbtnNextOrder_Click(Object sender, ImageClickEventArgs e) +3951

这些行应该为您提供所需的所有信息。

The stacktrace seems quite explicit:

site.modGlobal.ExecuteSQL(String sqlStr, OdbcConnection& dbcon) +128
site.orderprd.imgbtnNextOrder_Click(Object sender, ImageClickEventArgs e) +3951

Those lines should give you all the information you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文