开发者

ASP.NET: accessdb odbc - when getting an exception, how can i see the full stack trace?

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(Strin开发者_高级运维g 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 ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜