Advertisement
Guest User

Untitled

a guest
Nov 17th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. Server Error in / Application.
  2.  
  3. Syntax error in INSERT INTO statement.
  4.  
  5. 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.
  6.  
  7. Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement.
  8.  
  9. Source Error:
  10.  
  11.  
  12. Line 20: cmd.Parameters.AddWithValue("@f7", tb_Pictures.Text)
  13. Line 21: oleDbConn.Open()
  14. Line 22: cmd.ExecuteNonQuery()
  15. Line 23: Response.Redirect("confirmation.aspx")
  16. Line 24:
  17.  
  18. Source File: C:\Users\MUBEEN\Desktop\PROJECT 2\WebApplication1\WebApplication1\addcar.aspx.vb Line: 22
  19.  
  20. Stack Trace:
  21.  
  22.  
  23. [OleDbException (0x80040e14): Syntax error in INSERT INTO statement.]
  24. System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1090740
  25. System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
  26. System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +189
  27. System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
  28. System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +162
  29. System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +107
  30. WebApplication1.addcar.Button_Click(Object sender, EventArgs e) in C:\Users\MUBEEN\Desktop\PROJECT 2\WebApplication1\WebApplication1\addcar.aspx.vb:22
  31. System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9553594
  32. System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
  33. System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  34. System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  35. System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
  36. System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
  37.  
  38. Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement