We have a web application with error handling in the global.asax file that goes through any uncaught exception and emails us with the details which include the exception stack trace and the inner exception (if there is one) stack trace. This usually works very well giving us the class name, page name and line number of where the error started. In one page's case we're not getting anything more than the error below. So, I don't know if it's happening when the page loads, when the user posts back, when it calls the controller sending the object to the database or somewhere else. Can anyone suggest a way to track this specific error down to a line number? Thanks.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)