Click here to Skip to main content
16,019,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
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.

Exception Details: System.Data.OleDb.OleDbException: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

Source Error:
C#
Line 83:         cmd.Parameters.AddWithValue("backlog", Txtbcklg);
Line 84:         cmd.Parameters.AddWithValue("academicgap", Txtacademicgap);
Line 85:         cmd.ExecuteNonQuery();
Line 86:         con.Close();
Line 87:         Response.Write("saved");

Source File: e:\placement cell\student.aspx.cs Line: 85

Stack Trace:
[OleDbException (0x80040e21): Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1070856
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +194
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +167
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
   student.save_Click(Object sender, EventArgs e) in e:\placement cell\student.aspx.cs:85
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Posted
Updated 16-Mar-11 3:11am
v2

What are these variables...? Are they the right data type?

cmd.Parameters.AddWithValue("backlog", Txtbcklg);
cmd.Parameters.AddWithValue("academicgap", Txtacademicgap);


Off the top of my head, these look like windows controls. You need to access the 'Text' property if so and parse them to their required data types.

e.g. if the parameter for backlog is INT in the stored procedure

C#
cmd.Parameters.AddWithValue("backlog", Convert.ToInt32(Txbcklg.Text));
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900