Asp.Net没有提供足够的错误信息

Asp.Net没有提供足够的错误信息,asp.net,error-handling,elmah,Asp.net,Error Handling,Elmah,我对这段代码感到失望,因为我不知道发生了什么 我的用户在尝试编辑Web表单上的简单值时,有时会出现错误(我无法复制它,因为它对我来说很好): Server Error in '/cp' Application. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web

我对这段代码感到失望,因为我不知道发生了什么

我的用户在尝试编辑Web表单上的简单值时,有时会出现错误(我无法复制它,因为它对我来说很好):

Server Error in '/cp' 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.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +13908045
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +305
DevExpress.Web.ASPxPopupControl.Internal.PopupWindowClientStateUtils.LoadClientState(PopupWindow window, String state) +288
DevExpress.Web.ASPxPopupControl.ASPxPopupControl.LoadWindowsState(String state) +133
DevExpress.Web.ASPxClasses.ASPxWebControl.LoadPostDataInternal(NameValueCollection postCollection, Boolean raisePostDataEvent) +447
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +1068
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2773
它告诉我发生了异常,但没有告诉我发生的位置或原因

保存存款更改的弹出框按钮为:

 Protected Sub btnDepPaid_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDepPaid.Click
        Try
            ASPxPopupControl3.ShowOnPageLoad = False
            Dim da As New bsTableAdapters.DepositTableAdapter
            da.UpdateQuery(DepPaid.Text, CustID.Text)

        Catch ex As Exception

        End Try

    End Sub
我让Elmah运行,它显示的只是上面的错误——但我看不出错误是如何发生的——根据Elmah的说法,deppay.Text和CustID.Text中有有效的“字符串”,例如:“65.00”

我感到沮丧的是,错误并不是说问题出在哪一行,只是“输入字符串的格式不正确”——我如何才能让它提供更多信息

我是否可以向上面的代码中添加任何其他内容,以捕获错误发生的位置,或者任何其他信息来确定错误的实际位置

根据Elmah的说法,输入的内容是:


谢谢,标记

输入65,00,然后查看是否出现相同的错误。在转换调用过程中,它似乎失败了,因此可能像@Peri建议尝试不同的变体,特别是因为它似乎与货币相关,可能一些用户正在键入货币符号,如:%或$等。您好-感谢您的建议-65,00会导致在上出现验证错误该表单不允许提交。据Elmah说,我还附上了输入的字符串,确认它是一个有效的小数(有问题的用户已经使用该应用很长时间了-我没有更改任何内容,我知道他们能够在网络表单上进行更改-因此,如果他们最近升级过,这可能是浏览器问题??)-再次感谢您提供的任何帮助/建议。我看到呼叫ParseInt32使用NumberFormatInfo。也许它使用了操作系统的设置。在这种情况下,这是可以预料的。或者,作为十进制分隔符。也许验证总是需要。作为分隔符,但解析输入的代码取决于系统设置?尝试将系统中的分隔符更改为,我们也在处理此问题。但它似乎与使用DevExpress弹出窗口的IE10有关。Devexpress的建议是升级。