jonsuns7
asked on
ASP .net, Trying to read stack Trace
Hi Everyone,
I am kind of new with ASP so bear with me. I am getting an error message when I try to update a record using a Listview. Since I have no idea how to read the stack trace, I was wondering if anyone with more experience could help.
Here is the error that pops up in the window after I try to update:
Server Error in '/DatabaseProd' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumb er(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283
System.Number.ParseInt32(S tring s, NumberStyles style, NumberFormatInfo info) +119
System.String.System.IConv ertible.To Int32(IFor matProvide r provider) +46
System.Convert.ChangeType( Object value, TypeCode typeCode, IFormatProvider provider) +297
System.Web.UI.WebControls. Parameter. GetValue(O bject value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +126
System.Web.UI.WebControls. Parameter. GetValue(O bject value, Boolean ignoreNullableTypeChanges) +63
System.Web.UI.WebControls. SqlDataSou rceView.Ad dParameter s(DbComman d command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatSt ring) +550
System.Web.UI.WebControls. SqlDataSou rceView.Ex ecuteUpdat e(IDiction ary keys, IDictionary values, IDictionary oldValues) +346
System.Web.UI.DataSourceVi ew.Update( IDictionar y keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCal lback callback) +95
System.Web.UI.WebControls. ListView.H andleUpdat e(ListView Item item, Int32 itemIndex, Boolean causesValidation) +1226
System.Web.UI.WebControls. ListView.H andleEvent (EventArgs e, Boolean causesValidation, String validationGroup) +482
System.Web.UI.WebControls. ListView.O nBubbleEve nt(Object source, EventArgs e) +233
System.Web.UI.Control.Rais eBubbleEve nt(Object source, EventArgs args) +37
System.Web.UI.WebControls. ListViewDa taItem.OnB ubbleEvent (Object source, EventArgs e) +112
System.Web.UI.Control.Rais eBubbleEve nt(Object source, EventArgs args) +37
System.Web.UI.WebControls. Button.OnC ommand(Com mandEventA rgs e) +125
System.Web.UI.WebControls. Button.Rai sePostBack Event(Stri ng eventArgument) +167
System.Web.UI.WebControls. Button.Sys tem.Web.UI .IPostBack EventHandl er.RaisePo stBackEven t(String eventArgument) +10
System.Web.UI.Page.RaisePo stBackEven t(IPostBac kEventHand ler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePo stBackEven t(NameValu eCollectio n postData) +36
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt) +5563
I am kind of new with ASP so bear with me. I am getting an error message when I try to update a record using a Listview. Since I have no idea how to read the stack trace, I was wondering if anyone with more experience could help.
Here is the error that pops up in the window after I try to update:
Server Error in '/DatabaseProd' Application.
--------------------------
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumb
System.Number.ParseInt32(S
System.String.System.IConv
System.Convert.ChangeType(
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.DataSourceVi
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Control.Rais
System.Web.UI.WebControls.
System.Web.UI.Control.Rais
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Page.RaisePo
System.Web.UI.Page.RaisePo
System.Web.UI.Page.Process
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You so much