2

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)
4

1 回答 1

3

此页面 http://forums.asp.net/t/1823287.aspx/1描述了一个类似的问题,似乎与 IE10 和图像按钮有关。建议是 IE10 将点击坐标作为小数而不是整数发送,但 .Net 框架代码正在使用 ParseInt32 进行解析,如堆栈跟踪中所示。在服务器上更新您的 .Net 框架可能会有所帮助。

于 2013-06-13T16:06:02.043 回答